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