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
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
}