From e40dcc7187f98440f4afd030a7c0086113bd5a04 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 1 Dec 2010 16:14:29 +0100 Subject: [PATCH] Do not fail on non-rt kernel --- gw-tests/lib.sh | 8 ++++---- gw-tests/nop-highprio.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 -- 2.39.2