mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +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:
parent
8203b1d542
commit
9a15a46df5
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user