run_stress.py -h doesn't work without a connection
run_stress.py tries to connect to openstack even though it's just a
--help / -h call. Just moved the import to the corresponding function.
Implements: blueprint stress-tests
Change-Id: Id0f9784a64f3bf53ea91a67452a78d17389d7f51
diff --git a/tempest/stress/run_stress.py b/tempest/stress/run_stress.py
index 06dee0f..109f334 100755
--- a/tempest/stress/run_stress.py
+++ b/tempest/stress/run_stress.py
@@ -19,10 +19,10 @@
import argparse
import json
-from tempest.stress import driver
-
def main(ns):
+ #NOTE(kodererm): moved import to make "-h" possible without OpenStack
+ from tempest.stress import driver
tests = json.load(open(ns.tests, 'r'))
if ns.serial:
for test in tests: