]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter-time.sh
Modification of *-time tests so that they don't break if the test was skipped.
[can-benchmark.git] / gw-tests / filter-time.sh
index c23a3b0ac0d7fe4a4b0512de30b06a0eead176a9..ed500ace04105e5d7b6578ac7ded71b77802b02d 100755 (executable)
@@ -5,7 +5,13 @@
 NO_GW_NEEDED=true
 
 main() {
-       ln -s ../filter/*.txt .
+    #Check that the test wasn't skipped.
+    if [ "$(ls -A ../filter)" ]; then
+        #Otherwise this would create *.txt file and plot.sh and break the automation
+        ln -s ../filter/*.txt .
+    else
+        SKIPPED=1; return;
+    fi;
 }
 
 ids="0 $(seq 255 256 2047)"