From d86d0f14e91dfa0c4b36247bda7cd04975ad09b0 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Thu, 23 Jan 2014 13:26:15 +0400 Subject: [PATCH] zdtm.sh: don't annotate printing separator line It's useful, if you like execute bash -x zdtm.sh. zdtm_sep isn't interesting for debugging needs. Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/zdtm.sh b/test/zdtm.sh index 9ebaad305..3ad766bb3 100755 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -175,7 +175,8 @@ BATCH_TEST=0 SPECIFIED_NAME_USED=0 zdtm_sep() -{ +{ ( + set +x local msg=$1 [ -n "$msg" ] && msg=" $msg " awk -v m=${2:-=} -v "msg=$msg" ' @@ -186,7 +187,7 @@ zdtm_sep() gsub(/ /, m, sep); printf("%s%s%s\n",sep,msg,sep); }' < /dev/null -} +) } check_criu() {