]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/lib.sh
genhtml: Add Space class
[can-benchmark.git] / gw-tests / lib.sh
index f4e74aca3eff66e1e802457fa9114d736577d66f..4c4274d301d8ec8576b57b8263ec0aa2c37a8fc9 100644 (file)
@@ -88,7 +88,7 @@ _measure() {
        export hostkvers=$hostkvers
        export traffic=$traffic
        cd \$(dirname \$0)/$(dirname $script)
        export hostkvers=$hostkvers
        export traffic=$traffic
        cd \$(dirname \$0)/$(dirname $script)
-       exec ./$(basename $script) --plot
+       exec ./$(basename $script) --plot "\$@"
        EOF
     chmod +x plot.sh
     # Set can interfaces up
        EOF
     chmod +x plot.sh
     # Set can interfaces up
@@ -126,14 +126,9 @@ _run() {
            _measure
        fi
        if [[ ! "$OPT_PLOT_DISABLE" ]]; then
            _measure
        fi
        if [[ ! "$OPT_PLOT_DISABLE" ]]; then
-           if [[ "$OPT_PLOT_ONLY" ]]; then
-               _plot
-           else
-               # Call ourselves once again
-               ./plot.sh
-           fi
+           _plot
        fi
        fi
-       cd -
+       cd - > /dev/null
     done
 }
 
     done
 }