mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +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 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
|
||||
|
|
Loading…
Reference in a new issue