windows tests: set -e and wait for bg job
This commit is contained in:
parent
38fad0f4dd
commit
e3b46e9f74
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue