summaryrefslogtreecommitdiff
path: root/tests/setup-stress-dependencies.sh
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>2019-02-05 10:38:57 -0800
committerGitHub <noreply@github.com>2019-02-05 10:38:57 -0800
commit4052214dd4be021ed41680a43360fe886db73d61 (patch)
tree20d04819e1ac9d710ecd06f36aaa1a39a91c1240 /tests/setup-stress-dependencies.sh
parent98b0e9a2b67c668fc9c29f3c12ecb02a1a535154 (diff)
downloadcoreclr-4052214dd4be021ed41680a43360fe886db73d61.tar.gz
coreclr-4052214dd4be021ed41680a43360fe886db73d61.tar.bz2
coreclr-4052214dd4be021ed41680a43360fe886db73d61.zip
Correctly error out gracefully on setup-stress-dependencies when libcoredistools isn't available. (#22357)
Diffstat (limited to 'tests/setup-stress-dependencies.sh')
-rwxr-xr-xtests/setup-stress-dependencies.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/setup-stress-dependencies.sh b/tests/setup-stress-dependencies.sh
index a7f3c498c1..e4ed04050a 100755
--- a/tests/setup-stress-dependencies.sh
+++ b/tests/setup-stress-dependencies.sh
@@ -117,7 +117,7 @@ fi
# Get library path
libPath=`find $packageDir | grep $rid | grep -m 1 libcoredistools`
-if [ ! -e $libPath ]; then
+if [ ! -e $libPath ] || [ -z "$libpath" ]; then
exit_with_error 1 'Failed to locate the downloaded library'
fi