Merge pull request #9288 from edolstra/fix-nar-access-test

Fix nar-access test on macOS

(cherry picked from commit e9a857e418)
Change-Id: I2fd2ec3e6ccb88350bdcd2ba15ccfd77275399c9
This commit is contained in:
eldritch horrors 2024-03-04 05:27:18 +01:00
parent 26e17eedef
commit 2633ca3f88

View file

@ -25,6 +25,11 @@ diff -u baz.cat-nar $storePath/foo/baz
nix store cat $storePath/foo/baz > baz.cat-nar
diff -u baz.cat-nar $storePath/foo/baz
# Check that 'nix store cat' fails on invalid store paths.
invalidPath="$(dirname $storePath)/99999999999999999999999999999999-foo"
cp -r $storePath $invalidPath
expect 1 nix store cat $invalidPath/foo/baz
# Test --json.
diff -u \
<(nix nar ls --json $narFile / | jq -S) \