]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/nop-highprio-time.sh
Modification of *-time tests so that they don't break if the test was skipped.
[can-benchmark.git] / gw-tests / nop-highprio-time.sh
index b8c00febf54429356f43a1ad47c6f4e4c2621be4..8faeeeebe02fc0b1bf70d7b7060f1bfd3d4a9dd6 100755 (executable)
@@ -3,7 +3,13 @@
 . lib.sh
 
 main() {
-       ln -s ../nop-highprio/*.txt .
+    #Check that the test wasn't skipped.
+    if [ "$(ls -A ../nop-highprio)" ]; then
+        #Otherwise this would create *.txt file and plot.sh and break the automation
+        ln -s ../nop-highprio/*.txt .
+    else
+        SKIPPED=1; return;
+    fi;
 }
 
 plot_cmds() {
@@ -14,7 +20,7 @@ set logscale y
 set grid xtics ytics mytics lw 1, lw 0.5
 set key left
 set xlabel "Experiment time [s]"
-set ylabel "Latency [ms]"
+set ylabel "GW latency [ms]"
 plot [:] [0.01:4] \\
           "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \\
           "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \\