From 968f3ab5f3ecd533f0e2b2910ad9ed538fd532d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sami=20R=C3=A4m=C3=B6?= Date: Wed, 26 May 2010 17:20:23 +0300 Subject: [PATCH] Test script removes unit test binaries after testing - Binaries are removed so they are not annoying in the list of untracked files if commit is made without compiling tests after running the script. --- scripts/run_unit_tests.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/run_unit_tests.sh b/scripts/run_unit_tests.sh index 7af810e..0b5de38 100755 --- a/scripts/run_unit_tests.sh +++ b/scripts/run_unit_tests.sh @@ -114,6 +114,15 @@ if [[ -d $REPORT_PATH && -d $UNIT_TESTS_ROOT_DIR ]]; then # remove temporary files rm $REPORT_PATH_ABSOLUTE/temp_*.txt + # remove all unit test binaries so they doesn't accidentally get into repository + for BINARY in "${UNIT_TEST_PROJECTS[@]}" + do + # remove only if file really exists + if [ -a $BINARY ]; then + rm $BINARY + fi + done + # tell that script reached the end echo "" >> $REPORT echo "All done!" >> $REPORT -- 1.7.9.5