aboutsummaryrefslogtreecommitdiff
path: root/tests/gc.sh
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2022-01-19 14:15:45 +0100
committerregnat <rg@regnat.ovh>2022-01-19 14:24:14 +0100
commitdd7c2e0695b02639d8fe6c7bc050da14373b9513 (patch)
treef0c609f00ef8bcfcc1b16ac22331ffc008df6509 /tests/gc.sh
parent2ad2678c0baaa755becdbb7be82e2bb2e8ba1ada (diff)
Make `nix why-depends` quieter by default
Unless `--precise` is passed, make `nix why-depends` only show the dependencies between the store paths, without introspecting them to find the actual references. This also makes it ~3x faster
Diffstat (limited to 'tests/gc.sh')
-rw-r--r--tests/gc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gc.sh b/tests/gc.sh
index a736b63db..ad09a8b39 100644
--- a/tests/gc.sh
+++ b/tests/gc.sh
@@ -18,7 +18,7 @@ if nix-store --gc --print-dead | grep -E $outPath$; then false; fi
nix-store --gc --print-dead
-inUse=$(readLink $outPath/input-2)
+inUse=$(readLink $outPath/reference-to-input-2)
if nix-store --delete $inUse; then false; fi
test -e $inUse
@@ -35,7 +35,7 @@ nix-collect-garbage
# Check that the root and its dependencies haven't been deleted.
cat $outPath/foobar
-cat $outPath/input-2/bar
+cat $outPath/reference-to-input-2/bar
# Check that the derivation has been GC'd.
if test -e $drvPath; then false; fi