From: Michal Sojka Date: Wed, 1 Dec 2010 15:14:29 +0000 (+0100) Subject: Do not fail on non-rt kernel X-Git-Tag: fix-allnoconfig~277 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/e40dcc7187f98440f4afd030a7c0086113bd5a04?hp=2e2884259e51740210383e230444b6a9f7bfb1f4 Do not fail on non-rt kernel --- diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index 79899c4..72d635e 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -89,10 +89,10 @@ _run() { # Delete all vcan interfaces sshgw 'for dev in $(ip l|grep -o vcan[^:]\\+); do ip link del dev $dev; done' # Reset priorities - sshgw 'chrt -p -f 50 `pidof irq/145-can0` > /dev/null' - sshgw 'chrt -p -f 50 `pidof irq/146-can1` > /dev/null' - sshgw 'chrt -p -f 49 `pidof sirq-net-rx/0` > /dev/null' - sshgw 'chrt -p -f 49 `pidof sirq-net-tx/0` > /dev/null' + sshgw 'chrt -p -f 50 `pidof irq/145-can0` > /dev/null || :' + sshgw 'chrt -p -f 50 `pidof irq/146-can1` > /dev/null || :' + sshgw 'chrt -p -f 49 `pidof sirq-net-rx/0` > /dev/null || :' + sshgw 'chrt -p -f 49 `pidof sirq-net-tx/0` > /dev/null || :' cleanupgw main diff --git a/gw-tests/nop-highprio.sh b/gw-tests/nop-highprio.sh index d770d83..a10aa2c 100755 --- a/gw-tests/nop-highprio.sh +++ b/gw-tests/nop-highprio.sh @@ -4,10 +4,10 @@ main() { sshgw cangw -A -s can0 -d can1 - sshgw 'chrt -p -f 99 `pidof irq/145-can0`' - sshgw 'chrt -p -f 99 `pidof irq/146-can1`' - sshgw 'chrt -p -f 98 `pidof sirq-net-rx/0`' - sshgw 'chrt -p -f 98 `pidof sirq-net-tx/0`' + sshgw 'chrt -p -f 99 `pidof irq/145-can0` || :' + sshgw 'chrt -p -f 99 `pidof irq/146-can1` || :' + sshgw 'chrt -p -f 98 `pidof sirq-net-rx/0` || :' + sshgw 'chrt -p -f 98 `pidof sirq-net-tx/0` || :' latester -d can0 -d can1 -d can2 -o -c $COUNT -l 2 -h hist2.dat -f time2.dat latester -d can0 -d can1 -d can2 -o -c $COUNT -l 4 -h hist4.dat -f time4.dat latester -d can0 -d can1 -d can2 -o -c $COUNT -l 6 -h hist6.dat -f time6.dat