]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check whether taskset works before running cpu test
authorEvan Hunt <each@isc.org>
Wed, 20 Jan 2021 21:37:52 +0000 (13:37 -0800)
committerEvan Hunt <each@isc.org>
Wed, 20 Jan 2021 21:37:52 +0000 (13:37 -0800)
the taskset command used for the cpu system test seems
to be failing under vmware, causing a test failure. we
can try the taskset command and skip the test if it doesn't
work.

bin/tests/system/cpu/prereq.sh

index 8b0cd6e80496cb2fe058907e77ec9ceac1b576bb..e9cae418d986b353ebc6c1a6e7bd805843c193c9 100644 (file)
@@ -18,7 +18,7 @@ case $(uname) in
        Linux*)
                ;;
        *)
-               echo_i "cpu test only runs on Linux, skipping test"
+               echo_i "cpu test only runs on Linux"
                exit 255
                ;;
 esac
@@ -28,3 +28,8 @@ TASKSET=$(command -v "taskset" || true)
 if ! test -x "$TASKSET" ; then
        exit 255
 fi
+
+if ! $TASKSET fff0 true > /dev/null 2>&1; then
+        echo_i "taskset failed"
+        exit 255
+fi