X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/a6ea2ee6908867e10d49a461c2dcb9dbcb06f5d3..839937d2c18ad240ff87ba33d6ce144d5d8793a0:/gw-tests/lib.sh diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index d176f22..739333c 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -35,9 +35,7 @@ sshgw() { if [[ ! -S $socket ]] || ! ssh -x -a -S $socket root@192.168.2.3 true; then # Create master connection to speed up subsequenct command. - # The ssh is put into background and the connection is closed - # after 10 minutes) - ssh -f -M -S $socket root@192.168.2.3 sleep 600 > /dev/null 2>&1 + ssh -N -f -M -S $socket root@192.168.2.3 >/dev/null 2>&1 fi ssh -x -a -S $socket root@192.168.2.3 "$@" } @@ -49,7 +47,7 @@ cleanupgw() { _plot() { local testname=`basename $0 .sh` - plot_cmds | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n(GW kernel $kvers, traffic $traffic)\"/" > plot.gp + plot_cmds | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n(GW kernel $kvers, Traffic $traffic, Load $load)\"/" > plot.gp if [[ ! -s plot.gp ]]; then return; fi if [ -z "$OPT_NO_X11" ]; then echo "set terminal x11 enhanced; $(< plot.gp)" | gnuplot -persist