From a1f5a8797f36e68a3ca61568a25db67e29fda613 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 16 Aug 2022 17:47:44 +0200 Subject: suite_driver: avoid spurious error messages, fix --list-files --- testsuite/suite_driver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/suite_driver.sh b/testsuite/suite_driver.sh index 29c6e7d5f..cc4dcc623 100755 --- a/testsuite/suite_driver.sh +++ b/testsuite/suite_driver.sh @@ -29,14 +29,14 @@ parse_cmdline () { --start-at=*) d="$(echo "$opt" | sed -e 's/--start-at=//')" dirs="$(echo "" "$dirs" | sed -e "s/^.* $d//")" dirs="$d $dirs" ;; - --list-tests) echo "$dirs"; exit 0;; + --list-tests) echo $dirs; exit 0;; *) echo "Unknown option $opt" exit 2 ;; esac done - NPROC=${NPROC:-$(nproc || echo 1)} + NPROC=${NPROC:-$(nproc 2> /dev/null || echo 1)} } singlerun() { -- cgit v1.2.3