Skip to content

Commit

Permalink
runUnitTests.sh: more message + bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Apr 3, 2021
1 parent d45a2a7 commit 65581cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/jenkins/runUnitTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65581cb

Please sign in to comment.