diff options
author | Jeff Rizzo <riz@tastylime.net> | 2021-01-21 12:05:30 -0800 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-01-23 18:32:18 -0500 |
commit | c0cab57c2d4d1fd4a7db4e7d6edda7bdc6549619 (patch) | |
tree | 9410bea723079f9606f2edc3287fbe54e5c7570c | |
parent | 5eeb310b2f0ccf1adf91b448573001559696a1d7 (diff) |
run-test.sh: use the POSIX '-L 1' for xargs
This allows tests to be run on platforms where '-l'
isn't implemented, like MacOS.
-rwxr-xr-x | app/run-test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/run-test.sh b/app/run-test.sh index dd3c752..4708932 100755 --- a/app/run-test.sh +++ b/app/run-test.sh @@ -17,7 +17,7 @@ testcases=$(find $path -name native_posix.keymap -exec dirname \{\} \;) num_cases=$(echo "$testcases" | wc -l) if [ $num_cases -gt 1 ]; then echo "" > ./build/tests/pass-fail.log - echo "$testcases" | xargs -l -P 4 ./run-test.sh + echo "$testcases" | xargs -L 1 -P 4 ./run-test.sh err=$? sort -k2 ./build/tests/pass-fail.log exit $err @@ -45,4 +45,4 @@ else echo "PASS: $testcase" >> ./build/tests/pass-fail.log exit 0 fi -fi
\ No newline at end of file +fi |