Browse Source

Make test XML results unique by putting in different folders.

Changelog: None

Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
2.0.x
Kristian Amlie 5 years ago
parent
commit
351973f0b8
No known key found for this signature in database GPG Key ID: F464407C996AF03F
  1. 4
      scripts/test/test-utils.sh

4
scripts/test/test-utils.sh

@ -86,7 +86,7 @@ run_tests() {
# This is a trick to make pytest generate different junit reports
# for different runs: renaming the tests folder to tests_<testsuite>
cp -r tests tests_${device_type}
cp -r tests tests_${device_type}_${artifact_name}
python3 -m pytest --verbose \
--junit-xml="${MENDER_CONVERT_DIR}/results_${device_type}.xml" \
@ -96,7 +96,7 @@ run_tests() {
--board-type="${device_type}" \
--mender-image=${device_type}-${artifact_name}.sdimg \
--sdimg-location="${MENDER_CONVERT_DIR}/deploy" \
tests_${device_type} \
tests_${device_type}_${artifact_name} \
${pytest_args_extra}
exitcode=$?

Loading…
Cancel
Save