1
0
Fork 0

windows tests: set -e and wait for bg job

This commit is contained in:
Astro 2019-04-18 18:13:55 +02:00
parent 38fad0f4dd
commit e3b46e9f74
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ stdenv.mkDerivation {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cat > $out/bin/run.sh << EOF cat > $out/bin/run.sh << EOF
set -e -m
# +1 day from last modification of the disk image # +1 day from last modification of the disk image
CLOCK=$(date -Is -d @$(expr $(stat -c %Y ${diskImage}) + 86400)) CLOCK=$(date -Is -d @$(expr $(stat -c %Y ${diskImage}) + 86400))
${qemu.runQemu true forwardedPorts [ ${qemu.runQemu true forwardedPorts [
@ -64,6 +66,8 @@ stdenv.mkDerivation {
${ssh "shutdown -a"} ${ssh "shutdown -a"}
# Power off immediately # Power off immediately
${ssh "shutdown -p -f"} ${ssh "shutdown -p -f"}
wait
EOF EOF
chmod a+x $out/bin/run.sh chmod a+x $out/bin/run.sh
''; '';