panic: allow running specific test cases from command line

Small quality-of-life improvement, make it easier to run specific
test cases, when debugging the tests locally.
Take the optional list of test cases to run from the command line.
This commit is contained in:
Ivan Grokhotkov
2020-07-29 12:24:39 +02:00
parent 709730317b
commit 481409ec05
2 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python
import sys
import panic_tests as test
from test_panic_util.test_panic_util import panic_test, run_all
@@ -247,4 +248,4 @@ def test_coredump_abort_flash_bin_crc(env, extra_data):
if __name__ == '__main__':
run_all(__file__)
run_all(__file__, sys.argv[1:])