diff options
| author | Simon Glass <[email protected]> | 2022-08-06 17:51:55 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-09-12 18:06:36 -0400 |
| commit | f6e6022ff1b13260ce60123dc6b2ecc369c0234f (patch) | |
| tree | 920378882a11c3e443c3a73aecf1ebbae30ce31c /test | |
| parent | b681669aa533346b648995ae8c4bd9d257ea920a (diff) | |
test: Refactor arg parsing for the run script
Tidy up this code a little. Also use '-k' consistently, since -m is more
limited in what it can accept.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'test')
| -rwxr-xr-x | test/run | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -13,9 +13,12 @@ run_test() { [ $? -ne 0 ] && failures=$((failures+1)) } -# SKip slow tests if requested -[ "$1" == "quick" ] && mark_expr="not slow" -[ "$1" == "quick" ] && skip=--skip-net-tests +# Select test attributes +if [ "$1" = "quick" ]; then + mark_expr="not slow" + skip=--skip-net-tests +fi + [ "$1" == "tools" ] && tools_only=y failures=0 @@ -23,7 +26,7 @@ failures=0 if [ -z "$tools_only" ]; then # Run all tests that the standard sandbox build can support run_test "sandbox" ./test/py/test.py --bd sandbox --build \ - -m "${mark_expr}" + -k "${mark_expr}" fi # Run tests which require sandbox_spl |
