forked from lix-project/lix
gc-auto.sh: More test fixes
This commit is contained in:
parent
e07ec8d27e
commit
08ee364950
|
@ -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