windows tests: exit 0 on success, fix $FAIL escaping

This commit is contained in:
Astro 2019-04-22 01:14:17 +02:00
parent 3fa4f84958
commit 588f8fa594
1 changed files with 5 additions and 2 deletions

View File

@ -69,8 +69,11 @@ stdenv.mkDerivation {
${ssh "shutdown -p -f"} ${ssh "shutdown -p -f"}
wait wait
[ "\\\$FAIL" = "y" ] && exit 1 if [ "\$FAIL" = "y" ]; then
exit 1
else
exit 0
fi
EOF EOF
chmod a+x $out/bin/run.sh chmod a+x $out/bin/run.sh
''; '';