diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-03T16·11+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-09-03T16·11+0200 |
commit | 08ee36495087e3d6f573615c050497ec2298cafa (patch) | |
tree | f49ff7539199e27444c61e7cd34a9456ed3b0e90 /tests/gc-auto.sh | |
parent | e07ec8d27e08bf23eccab079b044a6f1b37f3ac9 (diff) |
gc-auto.sh: More test fixes
Diffstat (limited to 'tests/gc-auto.sh')
-rw-r--r-- | tests/gc-auto.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/gc-auto.sh b/tests/gc-auto.sh index 5c8be7c0ecfc..87f1d6798efd 100644 --- a/tests/gc-auto.sh +++ b/tests/gc-auto.sh @@ -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 |