NSBperf: don't exit during import time 69/38469/1
authorRoss Brattain <ross.b.brattain@intel.com>
Mon, 31 Jul 2017 18:38:08 +0000 (11:38 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Mon, 31 Jul 2017 18:40:05 +0000 (11:40 -0700)
commit11b2a73549df60bdd19aecb98dc4b9e71a40c0ac
tree13a5bcc5b7ab397b6ecf795db244e39883830227
parent54f26bfe1cb139545ab86450342c6a7ab520dd83
NSBperf: don't exit during import time

This was breaking testr unittests.

Don't do this like this during import time,
only do them in if __name__ sections, otherwise
when anything else tries to import this module
it exists.

Change-Id: Ia17f5e1a5cbe07ab287d3b95e96489b8a6248170
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
yardstick/cmd/NSBperf.py