From bacefba61066aae94dc9ec031d1723b344a49151 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 27 Aug 2009 19:23:41 +0200 Subject: [PATCH] Convert plot commands to be returned by function p() --- tests/_lib.sh | 5 +++-- tests/ethflood.sh | 6 +++--- tests/ethflood64k.sh | 6 +++--- tests/ethload.sh | 6 +++--- tests/ethloadsend.sh | 6 +++--- tests/rtt-virtual.sh | 6 +++--- tests/rtt-w.sh | 5 +++-- tests/rtt.sh | 5 +++-- 8 files changed, 24 insertions(+), 21 deletions(-) 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 <