diff --git a/tools/jenkins/runUnitTests.sh b/tools/jenkins/runUnitTests.sh index c807652a33..9c3dbe32c0 100755 --- a/tools/jenkins/runUnitTests.sh +++ b/tools/jenkins/runUnitTests.sh @@ -152,12 +152,14 @@ if [ "$FAIL" = "0" ]; then echo "-----------------------------------------------------------------------" cat result.txt echo "-----------------------------------------------------------------------" + echo "* moving test results to $BUILD_ARCHIVE_DIRECTORY/${INSTALLER_BASENAME}-tests.txt" mv results.txt "$BUILD_ARCHIVE_DIRECTORY/${INSTALLER_BASENAME}-tests.txt" fi UNIT_TESTS_FAIL_DIR="$BUILD_ARCHIVE_DIRECTORY/unit_tests_failures" - mkdir -p "$UNIT_TESTS_FAIL_DIR" - if [ -n "$UNIT_TESTS_FAIL_DIR:-}" ] && [ -d "failed" ] && [ "$(ls -A failed)" ]; then + if [ -n "${UNIT_TESTS_FAIL_DIR:-}" ] && [ -d "failed" ] && [ "$(ls -A failed)" ]; then + echo "* moving test failures to $UNIT_TESTS_FAIL_DIR" + mkdir -p "$UNIT_TESTS_FAIL_DIR" cd failed && mv ./* "$UNIT_TESTS_FAIL_DIR/" fi fi