mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
check whether taskset works before running cpu test
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user