diff options
author | Michael Abel <info@abel-ikt.de> | 2022-04-11 17:05:22 +0200 |
---|---|---|
committer | Michael Abel <info@abel-ikt.de> | 2022-04-11 17:05:22 +0200 |
commit | b88fab23c990c3caa15c20cf4c468ea1559bfb2c (patch) | |
tree | 4694b445be6aa8197a4155a0155bb0ab40970763 | |
parent | c3259e8191250dc1e46bc8551871060d202bced5 (diff) |
Avoid to print debugging info
-rwxr-xr-x | ci/ci_run_all_plugin_tests.sh | 9 | ||||
-rwxr-xr-x | ci/ci_run_all_sm_tests.sh | 3 | ||||
-rwxr-xr-x | ci/ci_run_all_tests.sh | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/ci/ci_run_all_plugin_tests.sh b/ci/ci_run_all_plugin_tests.sh index 16b82720..ce325e5b 100755 --- a/ci/ci_run_all_plugin_tests.sh +++ b/ci/ci_run_all_plugin_tests.sh @@ -31,13 +31,15 @@ cd tests/PySys/ sudo tedge config set software.plugin.default apt set +e -pysys.py run --record -v DEBUG 'apt_*' -XmyPlatform='container' +# Dont use -v DEBUG here, it will print the enviroment vars with passwords in them +pysys.py run --record 'apt_*' -XmyPlatform='container' set -e mv __pysys_junit_xml pysys_junit_xml_apt set +e -pysys.py run --record -v DEBUG 'apama_*' -XmyPlatform='container' +# Dont use -v DEBUG here, it will print the enviroment vars with passwords in them +pysys.py run --record 'apama_*' -XmyPlatform='container' set -e mv __pysys_junit_xml pysys_junit_xml_apama @@ -46,7 +48,8 @@ sudo cp ../../plugins/tedge_docker_plugin/tedge_docker_plugin.sh /etc/tedge/sm-p sudo chmod +x /etc/tedge/sm-plugins/docker set +e -pysys.py run --record -v DEBUG 'docker_*' -XmyPlatform='container' -Xdockerplugin='dockerplugin' +# Dont use -v DEBUG here, it will print the enviroment vars with passwords in them +pysys.py run --record 'docker_*' -XmyPlatform='container' -Xdockerplugin='dockerplugin' set -e mv __pysys_junit_xml pysys_junit_xml_docker diff --git a/ci/ci_run_all_sm_tests.sh b/ci/ci_run_all_sm_tests.sh index f86c0d09..1f8b2ce4 100755 --- a/ci/ci_run_all_sm_tests.sh +++ b/ci/ci_run_all_sm_tests.sh @@ -53,7 +53,8 @@ cd tests/PySys/ # Run all software management tests, including the ones for the # fake- and the docker plugin set +e -pysys.py run --record -v DEBUG 'SoftwareManagement.*' -XmyPlatform='container' -Xdockerplugin='dockerplugin' -Xfakeplugin='fakeplugin' +# Dont use -v DEBUG here, it will print the enviroment vars with passwords in them +pysys.py run --record 'SoftwareManagement.*' -XmyPlatform='container' -Xdockerplugin='dockerplugin' -Xfakeplugin='fakeplugin' set -e deactivate diff --git a/ci/ci_run_all_tests.sh b/ci/ci_run_all_tests.sh index d26dbcb1..587629ac 100755 --- a/ci/ci_run_all_tests.sh +++ b/ci/ci_run_all_tests.sh @@ -41,7 +41,8 @@ export C8YDEVICEID=$(python3 ./ci/find_device_id.py --tenant $C8YTENANT --user $ cd tests/PySys/ set +e -pysys.py run --exclude analytics --record -v DEBUG +# Dont use -v DEBUG here, it will print the enviroment vars with passwords in them +pysys.py run --exclude analytics --record set -e deactivate |