aboutsummaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-16 17:07:17 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-16 17:07:17 -0400
commit1a901fe8c2b3dc3192074e19177e6e4652233ea2 (patch)
tree7d5462f6a7194edf917d60c1ea11b9394cd44e15 /standalone
parent876277afc6e212e74713621f47d85e53e49666d6 (diff)
workaround try #3
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/windows/build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh
index f43f041d2..6f29227f2 100755
--- a/standalone/windows/build.sh
+++ b/standalone/windows/build.sh
@@ -100,6 +100,12 @@ Build/BuildVersion > dist/build-version
PATH="$(pwd)/dist/build/git-annex/:$PATH"
export PATH
mkdir -p c:/WINDOWS/Temp/git-annex-test/
+oldpwd="$(pwd)"
cd c:/WINDOWS/Temp/git-annex-test/
rm -rf .t
-withcyg git-annex.exe test
+if ! withcyg git-annex.exe test; then
+ # For some reason a nonzero exit is not propigated out of this
+ # shell script from the test suite. Instead, delete the build
+ # artifact, to prevent a bad one being uploaded.
+ rm -f "$oldpwd/git-annex-installer.exe"
+fi