X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/4bcafe205c56626b3d549b39d24ff4f033563d84..25a87df81e3eb9b6e0bff19a2197165b3c3ceb2a:/gw-tests/lib.sh diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index f4e74ac..5108f8d 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -88,7 +88,7 @@ _measure() { 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 @@ -121,19 +121,14 @@ _run() { mkdir -p $dir script=$(echo $dir | sed -e 's/[^/]*/../g')/${test}.sh cd $dir - echo "Working directory: $dir" if [[ ! "$OPT_PLOT_ONLY" ]]; then + echo "Working directory: $dir" _measure fi if [[ ! "$OPT_PLOT_DISABLE" ]]; then - if [[ "$OPT_PLOT_ONLY" ]]; then - _plot - else - # Call ourselves once again - ./plot.sh - fi + _plot fi - cd - + cd - > /dev/null done }