From 13c6cd0195bbcf0ebc917d02d8dea4bf744635a7 Mon Sep 17 00:00:00 2001 From: Michael Abel <75477722+abelikt@users.noreply.github.com> Date: Tue, 7 Dec 2021 15:26:14 +0100 Subject: [CIT-623] Enable recording for all PySys calls (#670) * Enable recording for all PySys calls Avoid to stop when the execution fails (wrap around set +e & -e). Move report folder, so that it won't be overridden. Signed-off-by: Michael Abel * Enable xml and csv report writers for PySys --- ci/ci_run_all_plugin_tests.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ci/ci_run_all_plugin_tests.sh') diff --git a/ci/ci_run_all_plugin_tests.sh b/ci/ci_run_all_plugin_tests.sh index 9e29d7e1..3505e2c0 100755 --- a/ci/ci_run_all_plugin_tests.sh +++ b/ci/ci_run_all_plugin_tests.sh @@ -30,11 +30,19 @@ cd tests/PySys/ sudo tedge config set software.plugin.default apt -pysys.py run -v DEBUG 'apt_*' -XmyPlatform='container' +set +e +pysys.py run --record -v DEBUG 'apt_*' -XmyPlatform='container' +set -e + +mv __pysys_junit_xml pysys_junit_xml_apt sudo cp ../../plugins/tedge_docker_plugin/tedge_docker_plugin.sh /etc/tedge/sm-plugins/docker -pysys.py run -v DEBUG 'docker_*' -XmyPlatform='container' -Xdockerplugin='dockerplugin' +set +e +pysys.py run --record -v DEBUG 'docker_*' -XmyPlatform='container' -Xdockerplugin='dockerplugin' +set -e + +mv __pysys_junit_xml pysys_junit_xml_docker sudo rm -f /etc/tedge/sm-plugins/docker -- cgit v1.2.3