summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Rizzo <riz@tastylime.net>2021-01-21 12:05:30 -0800
committerPete Johanson <peter@peterjohanson.com>2021-01-23 18:32:18 -0500
commitc0cab57c2d4d1fd4a7db4e7d6edda7bdc6549619 (patch)
tree9410bea723079f9606f2edc3287fbe54e5c7570c
parent5eeb310b2f0ccf1adf91b448573001559696a1d7 (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-xapp/run-test.sh4
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