Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Jae Lee <sjlee@mail.com>2016-12-15 03:19:00 +0300
committerSung-Jae Lee <sjlee@mail.com>2016-12-15 03:19:00 +0300
commita57e3e481e52173e276f028e7030bd1741917c8e (patch)
tree9a590c1a71c2ed9e3ad15cea325b15600f483816 /run-test.sh
parentdc74e6c2ebb7afba23b355c3fbd02f12d1553970 (diff)
Avoid unintended test runs and errors
* Skip test runs where doesn`t have test cases for certain target, so generate errors with exit code 127.
Diffstat (limited to 'run-test.sh')
-rwxr-xr-xrun-test.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/run-test.sh b/run-test.sh
index cd471a4434..0cf9aef1b4 100755
--- a/run-test.sh
+++ b/run-test.sh
@@ -221,6 +221,12 @@ run_test()
fi
dirName="$1/$TestRelPath"
+
+ if [ ! -d "$dirName" ]; then
+ echo "Nothing to test in $testProject"
+ exit 0
+ fi
+
copy_test_overlay $dirName
pushd $dirName > /dev/null