]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/lib.sh
Only create plot.sh if test is not skipped
[can-benchmark.git] / gw-tests / lib.sh
index 4bc522b6441605262cb35692f3a798ccf6be7180..5df4598cb9cf4148cb9957e5ef7ab2766c5dbff9 100644 (file)
@@ -142,9 +142,10 @@ _measure() {
        kill_load
     fi
 
-    # Create a plot script at the end to signalize that the
-    # measurement was successfully finished
-    cat > plot.sh <<-EOF
+    if [ ! "$SKIPPED" ]; then
+        # Create a plot script at the end to signalize that the
+        # measurement was successfully finished
+       cat > plot.sh <<-EOF
        #!/bin/bash
        export kvers=$kvers
        export hostkvers=$hostkvers
@@ -153,7 +154,8 @@ _measure() {
        cd \$(dirname \$0)/$(dirname $script)
        exec ./$(basename $script) --plot "\$@"
        EOF
-    chmod +x plot.sh
+       chmod +x plot.sh
+    fi
 }