From 43d1a2b4434427c3d438b18b6be109fdd62ef391 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 6 Dec 2010 13:31:47 +0100 Subject: [PATCH] Do not invoke gnuplot when there is nothing to plot --- gw-tests/lib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index 4d6e2d7..467321d 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -44,6 +44,7 @@ _plot() { local testname=`basename $0 .sh` plot_cmds | sed -e "/set title/ s/[\"']\(.*\)[\"']/\"\1\\\\n($kvers)\"/" > plot.gp + if [[ ! -s plot.gp ]]; then return; fi if [ -z "$OPT_NO_X11" ]; then echo "set terminal x11 enhanced; $(< plot.gp)" | gnuplot -persist fi -- 2.39.2