]> 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 22065c380cf9e33bd2dacf98a65ca11439c041c8..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() {