mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Use expect
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
d7710a40be
commit
d26c317b14
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ diff -u baz.cat-nar $storePath/foo/baz
|
|||
# Check that 'nix store cat' fails on invalid store paths.
|
||||
invalidPath="$(dirname $storePath)/99999999999999999999999999999999-foo"
|
||||
mv $storePath $invalidPath
|
||||
(! nix store cat $invalidPath/foo/baz)
|
||||
expect 1 nix store cat $invalidPath/foo/baz
|
||||
mv $invalidPath $storePath
|
||||
|
||||
# Test --json.
|
||||
|
|
Loading…
Reference in a new issue