From dae4715ca5dff901e6468bdff578d2a67fce4a06 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Thu, 10 Oct 2024 12:03:42 +1100 Subject: [PATCH] Tweaked the unit test summary step to be simpler --- .drone.jsonnet | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 6c7d7eb2c..6163e4f0f 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -75,20 +75,9 @@ local sim_delete_cmd = 'if [ -f build/artifacts/sim_uuid ]; then rm -f /Users/$U name: 'Unit Test Summary', commands: [ sim_delete_cmd, - ||| - set +x - - if [[ -d ./build/artifacts/testResults.xcresult ]]; then - xcresultparser --output-format cli --failed-tests-only ./build/artifacts/testResults.xcresult - else - echo -e "\n\n\n\e[31;1mUnit test results not found\e[0m" - fi - |||, + 'xcresultparser --output-format cli --failed-tests-only ./build/artifacts/testResults.xcresult' ], - depends_on: ['Build and Run Tests'], - when: { - status: ['failure', 'success'], - }, + depends_on: ['Build and Run Tests'] }, { name: 'Convert xcresult to xml',