]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/nop-time.sh
Modification of *-time tests so that they don't break if the test was skipped.
[can-benchmark.git] / gw-tests / nop-time.sh
index 585d73343fdcbb7d92e0503fa9baac318e06f1fa..dea1483f50e7a961da5f787a01463cc4828ad991 100755 (executable)
@@ -3,7 +3,13 @@
 . lib.sh
 
 main() {
-       ln -s ../nop/*.txt .
+    #Check that the test wasn't skipped.
+    if [ "$(ls -A ../nop)" ]; then
+        #Otherwise this would create *.txt file and plot.sh and break the automation
+        ln -s ../nop/*.txt .
+    else
+        SKIPPED=1; return;
+    fi;
 }
 
 ADDITIONAL_PLOTS=detail