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

View File

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