tests: Add run-tests.py --no-reset
This can be used to request the previously used default behavior where the devices are not stopped at the end of a test case if a single test case is run. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5230bf64e8
commit
b5476d940e
1 changed files with 6 additions and 1 deletions
|
@ -138,6 +138,8 @@ def main():
|
|||
parser.add_argument('--shuffle-tests', action='store_true',
|
||||
dest='shuffle_tests',
|
||||
help='Shuffle test cases to randomize order')
|
||||
parser.add_argument('--no-reset', action='store_true', dest='no_reset',
|
||||
help='Do not reset devices at the end of the test')
|
||||
parser.add_argument('-f', dest='testmodules', metavar='<test module>',
|
||||
help='execute only tests from these test modules',
|
||||
type=str, choices=[[]] + test_modules, nargs='+')
|
||||
|
@ -299,6 +301,9 @@ def main():
|
|||
except Exception, e:
|
||||
logger.info("Failed to issue TEST-STOP after {} for {}".format(name, d.ifname))
|
||||
logger.info(e)
|
||||
if args.no_reset:
|
||||
print "Leaving devices in current state"
|
||||
else:
|
||||
reset_devs(dev, apdev)
|
||||
|
||||
for i in range(0, 3):
|
||||
|
|
Loading…
Reference in a new issue