mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
gc-auto.sh: More test fixes
This commit is contained in:
parent
e07ec8d27e
commit
08ee364950
1 changed files with 10 additions and 4 deletions
|
@ -23,10 +23,13 @@ with import ./config.nix; mkDerivation {
|
||||||
echo foo > \$out/bar
|
echo foo > \$out/bar
|
||||||
echo 1...
|
echo 1...
|
||||||
sleep 2
|
sleep 2
|
||||||
echo 200 > $fake_free
|
echo 200 > ${fake_free}.tmp1
|
||||||
|
mv ${fake_free}.tmp1 $fake_free
|
||||||
echo 2...
|
echo 2...
|
||||||
sleep 2
|
sleep 1
|
||||||
echo 3...
|
echo 3...
|
||||||
|
sleep 1
|
||||||
|
echo 4...
|
||||||
[[ \$(ls \$NIX_STORE/*-garbage? | wc -l) = 1 ]]
|
[[ \$(ls \$NIX_STORE/*-garbage? | wc -l) = 1 ]]
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -42,10 +45,13 @@ with import ./config.nix; mkDerivation {
|
||||||
echo foo > \$out/bar
|
echo foo > \$out/bar
|
||||||
echo 1...
|
echo 1...
|
||||||
sleep 2
|
sleep 2
|
||||||
echo 200 > $fake_free
|
echo 200 > ${fake_free}.tmp2
|
||||||
|
mv ${fake_free}.tmp2 $fake_free
|
||||||
echo 2...
|
echo 2...
|
||||||
sleep 2
|
sleep 1
|
||||||
echo 3...
|
echo 3...
|
||||||
|
sleep 1
|
||||||
|
echo 4...
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue