From 4cf61666347eb037edd036c047dbb1631e35b86f Mon Sep 17 00:00:00 2001 From: Nick Maltbie Date: Mon, 18 Apr 2022 22:54:10 -0400 Subject: [PATCH] Fixed parameters for running tests via bash --- dist/steps/run_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/steps/run_tests.sh b/dist/steps/run_tests.sh index d28e15b..03f8f82 100755 --- a/dist/steps/run_tests.sh +++ b/dist/steps/run_tests.sh @@ -64,9 +64,8 @@ for platform in ${TEST_PLATFORMS//;/ }; do echo "# Testing in $platform #" echo "###########################" echo "" - - runTests="" - if [ $platform -ne "COMBINE_RESULTS" ]; then + + if [[ "$platform" -eq "COMBINE_RESULTS" ]]; then runTests="-runTests -testPlatform $platform -testResults $FULL_ARTIFACTS_PATH/$platform-results.xml" else runTests="-quit" @@ -107,7 +106,8 @@ for platform in ${TEST_PLATFORMS//;/ }; do echo "# $platform Results #" echo "###########################" echo "" - if [ $platform -ne "COMBINE_RESULTS" ]; then + + if [[ "$platform" -eq "COMBINE_RESULTS" ]]; then cat "$FULL_ARTIFACTS_PATH/$platform-results.xml" cat "$FULL_ARTIFACTS_PATH/$platform-results.xml" | grep test-run | grep Passed fi