diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-11-06 18:06:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-11-06 18:06:58 +0000 |
commit | 7fbcfe9aa0c049c05aa9cd8bbf6c62796a1f109f (patch) | |
tree | d245353d90f8585172924a35ee5de601b7ab9b5b /bootstrap/vagrant-onap/vagrant_utils | |
parent | 83a23ba3ca198bca3a9069958fb5a7f342359a2c (diff) | |
parent | 7abf1a8ea14252fa55bf7da0575ad0ff21f41d61 (diff) |
Merge "Add debug support"
Diffstat (limited to 'bootstrap/vagrant-onap/vagrant_utils')
-rwxr-xr-x | bootstrap/vagrant-onap/vagrant_utils/postinstall.sh | 4 | ||||
-rwxr-xr-x | bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh b/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh index 89a69dd9a..7083f3d02 100755 --- a/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh +++ b/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh @@ -1,6 +1,8 @@ #!/bin/bash -set -o xtrace +if [[ "$debug" == "True" ]]; then + set -o xtrace +fi source /var/onap/functions diff --git a/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh b/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh index a378ad0cd..3a97ad9cf 100755 --- a/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh +++ b/bootstrap/vagrant-onap/vagrant_utils/unit_testing.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [[ "$debug" == "True" ]]; then + set -o xtrace +fi + set -o errexit TEST_SUITE=${1:-*} |