From 0084c8c88c325204eaaf843639924d563bb1b820 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 18 Jan 2019 17:17:50 +0100 Subject: Add a debug option for the native test launcher This flags set the shell script debugging on and output every line it executes. Change-Id: Iabf3a7f2ec2b72a271422367e7d820270987b56c Signed-off-by: Romain Forlot --- afm-test.native.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/afm-test.native.sh b/afm-test.native.sh index a80fdf2..bd1f8a2 100644 --- a/afm-test.native.sh +++ b/afm-test.native.sh @@ -64,6 +64,10 @@ do key="$1" case $key in + -d|--debug) + DEBUGOUTPUT="TRUE" + shift # past argument + ;; -l|--lavaoutput) LAVAOUTPUT="TRUE" shift # past argument @@ -86,6 +90,11 @@ esac done set -- "${POSITIONAL[@]}" # restore positional parameters +if [ "${DEBUGOUTPUT}" = "TRUE" ] +then + set -x +fi + if [ "$1" ] && [ "$2" ] then SERVICEPACKAGEDIR="$(readlink -f $1)" -- cgit 1.2.3-korg