[CRIU] [PATCH] zdtm.sh: don't annotate printing separator line
Andrey Vagin
avagin at openvz.org
Wed Jan 22 06:33:56 PST 2014
It's useful, if you like execute bash -x zdtm.sh.
zdtm_sep isn't interesting for debugging needs.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/zdtm.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/zdtm.sh b/test/zdtm.sh
index 8ccdabb..708d6f8 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()
{
--
1.8.3.1
More information about the CRIU
mailing list