Fix nar-access test on macOS

This commit is contained in:
Eelco Dolstra 2023-11-03 11:03:58 +01:00
parent d26c317b14
commit e5908212e2

View file

@ -27,9 +27,8 @@ diff -u baz.cat-nar $storePath/foo/baz
# Check that 'nix store cat' fails on invalid store paths. # Check that 'nix store cat' fails on invalid store paths.
invalidPath="$(dirname $storePath)/99999999999999999999999999999999-foo" invalidPath="$(dirname $storePath)/99999999999999999999999999999999-foo"
mv $storePath $invalidPath cp -r $storePath $invalidPath
expect 1 nix store cat $invalidPath/foo/baz expect 1 nix store cat $invalidPath/foo/baz
mv $invalidPath $storePath
# Test --json. # Test --json.
diff -u \ diff -u \