From c0cab57c2d4d1fd4a7db4e7d6edda7bdc6549619 Mon Sep 17 00:00:00 2001 From: Jeff Rizzo Date: Thu, 21 Jan 2021 12:05:30 -0800 Subject: [PATCH] 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. --- app/run-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/run-test.sh b/app/run-test.sh index dd3c752b..47089323 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