From: Michal Sojka Date: Thu, 27 Aug 2009 17:23:41 +0000 (+0200) Subject: Convert plot commands to be returned by function p() X-Git-Tag: fix-allnoconfig~369 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/bacefba61066aae94dc9ec031d1723b344a49151?ds=sidebyside Convert plot commands to be returned by function p() --- diff --git a/tests/_lib.sh b/tests/_lib.sh index 64620c0..0df9d91 100644 --- a/tests/_lib.sh +++ b/tests/_lib.sh @@ -100,8 +100,9 @@ kvers() { } plot() { - for i in "${!PLOT_CMD[@]}"; do - cmd="${PLOT_CMD[$i]}"; +# for i in "${!PLOT_CMD[@]}"; do + for i in 0; do + cmd=`p` # Get plot commands cmd=$(echo "$cmd" | sed -e "/set title/ s/[\"']\(.*\)[\"']/'\1 ($(kvers), CPU\\\\@${clk}Mhz)'/") if [ -z "$OPT_NO_X11" ]; then echo "set terminal x11 enhanced; ${cmd}" | gnuplot -persist diff --git a/tests/ethflood.sh b/tests/ethflood.sh index 628856e..cdad2cd 100755 --- a/tests/ethflood.sh +++ b/tests/ethflood.sh @@ -18,7 +18,7 @@ t() { -PLOT_CMD=' +p() { cat <