From 4668287becac0fbd6a3195dc3408c0cb41837d85 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 2 Dec 2016 11:26:28 -0700 Subject: [PATCH] autotest: disable shell tracing around helper functions Clean up the output a little bit. Change-Id: I34e97d14be861e7cb7d71be5d56a5a7c36b37008 Signed-off-by: Daniel Verkamp --- scripts/autotest_common.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/autotest_common.sh b/scripts/autotest_common.sh index 3d4c29336..97f746dee 100755 --- a/scripts/autotest_common.sh +++ b/scripts/autotest_common.sh @@ -65,11 +65,15 @@ function timing() { } function timing_enter() { + set +x timing "enter" "$1" + set -x } function timing_exit() { + set +x timing "exit" "$1" + set -x } function timing_finish() { @@ -177,11 +181,15 @@ function rbd_cleanup() { } function run_test() { + set +x echo "************************************" echo "START TEST $1" echo "************************************" + set -x time $1 + set +x echo "************************************" echo "END TEST $1" echo "************************************" + set -x }