3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

test-runner: don't fatally exit on bad test configuration

If a test has no hw.conf file test-runner was fully exiting and not
running any additional tests. This shouldn't happen in practice
since all upstreamed tests should run, but if any locally created
tests existed like this, it would cause the entire test run to exit
early.

Instead raise an exception which bails out of only that test, and
allows the rest to continue.
This commit is contained in:
James Prestwood 2021-08-12 13:21:52 -07:00 committed by Denis Kenzior
parent 8203b1d542
commit 9a15a46df5

View File

@ -1072,8 +1072,7 @@ def pre_test(ctx, test, copied):
dbg("Starting test %s" % test)
if not os.path.exists(test + '/hw.conf'):
print("No hw.conf found for %s" % test)
exit()
raise Exception("No hw.conf found for %s" % test)
ctx.hw_config = ConfigParser()
ctx.hw_config.read(test + '/hw.conf')