mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'each-fix-cpu-test' into 'main'
check whether taskset works before running cpu test See merge request isc-projects/bind9!4583
This commit is contained in:
commit
9ec5dcf79c
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue