gc-auto.sh: More test fixes

This commit is contained in:
Eelco Dolstra 2019-09-03 18:11:43 +02:00
parent e07ec8d27e
commit 08ee364950
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -23,10 +23,13 @@ with import ./config.nix; mkDerivation {
echo foo > \$out/bar
echo 1...
sleep 2
echo 200 > $fake_free
echo 200 > ${fake_free}.tmp1
mv ${fake_free}.tmp1 $fake_free
echo 2...
sleep 2
sleep 1
echo 3...
sleep 1
echo 4...
[[ \$(ls \$NIX_STORE/*-garbage? | wc -l) = 1 ]]
'';
}
@ -42,10 +45,13 @@ with import ./config.nix; mkDerivation {
echo foo > \$out/bar
echo 1...
sleep 2
echo 200 > $fake_free
echo 200 > ${fake_free}.tmp2
mv ${fake_free}.tmp2 $fake_free
echo 2...
sleep 2
sleep 1
echo 3...
sleep 1
echo 4...
'';
}
EOF