mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 01:19:23 +01:00
test-runner: delay starting the shell until after pre_test
This makes --shell somewhat more useful by copying all the test files and starting test processes before dumping the user into a shell.
This commit is contained in:
parent
6bf514c4c3
commit
f88d45c9d3
@ -1005,6 +1005,10 @@ def run_auto_tests(ctx, args):
|
||||
shutil.copytree(args.testhome + '/autotests/misc/secrets', '/tmp/secrets')
|
||||
shutil.copy(args.testhome + '/autotests/misc/phonesim/phonesim.conf', '/tmp')
|
||||
|
||||
for test in tests:
|
||||
try:
|
||||
copied, subtests = pre_test(ctx, test)
|
||||
|
||||
if args.shell:
|
||||
#
|
||||
# Shell really isn't meant to be used with multiple tests. If
|
||||
@ -1014,10 +1018,6 @@ def run_auto_tests(ctx, args):
|
||||
os.system('/bin/bash')
|
||||
exit()
|
||||
|
||||
for test in tests:
|
||||
try:
|
||||
copied, subtests = pre_test(ctx, test)
|
||||
|
||||
if len(subtests) < 1:
|
||||
dbg("No tests to run")
|
||||
exit()
|
||||
|
Loading…
Reference in New Issue
Block a user