Make duration in serial test approximate total run time

The duration argument is supposed to mean how long the test will take to
finish. Before this change, if running serially it would take n*duration where
n is the number of test cases specified to run.

Change-Id: I9bd525b17e41fae811e3bf48642b728151e65737
This commit is contained in:
David Kranz 2014-10-13 15:13:02 -04:00
parent d40ea28aa1
commit 71fee47a84
1 changed files with 3 additions and 1 deletions

View File

@ -102,9 +102,11 @@ def main():
call_inherited=ns.call_inherited)
if ns.serial:
# Duration is total time
duration = ns.duration / len(tests)
for test in tests:
step_result = driver.stress_openstack([test],
ns.duration,
duration,
ns.number,
ns.stop)
# NOTE(mkoderer): we just save the last result code