diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-01-18 17:17:50 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-01-23 15:06:14 +0100 |
commit | 0084c8c88c325204eaaf843639924d563bb1b820 (patch) | |
tree | cf3cc22d304d7b52adfcd582eaf5c483263012c7 | |
parent | 569a70213a52c5a0ba22c3a110c4b511d4574c83 (diff) |
Add a debug option for the native test launchersandbox/claneys/wip
This flags set the shell script debugging on and output every line it
executes.
Change-Id: Iabf3a7f2ec2b72a271422367e7d820270987b56c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | afm-test.native.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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)" |