]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Do not fail on non-rt kernel
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 1 Dec 2010 15:14:29 +0000 (16:14 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 1 Dec 2010 15:14:29 +0000 (16:14 +0100)
gw-tests/lib.sh
gw-tests/nop-highprio.sh

index 79899c4ed150744c1c0ce4dbd1815311d9eaa33d..72d635e661a03b29afc9b39fe04983b266814282 100644 (file)
@@ -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
             # 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
            cleanupgw
            
            main
index d770d83091fb5891c3564a2f8a25622d83d64ea8..a10aa2cdd55a403e13af54102cced50392cb36bb 100755 (executable)
@@ -4,10 +4,10 @@
 
 main() {
     sshgw cangw -A -s can0 -d can1
 
 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
     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