mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
fixup! tests: nix-profile: test install error message upon conflicting files
This commit is contained in:
parent
3efa476c54
commit
0167862e8e
1 changed files with 5 additions and 1 deletions
|
@ -141,7 +141,11 @@ printf World2 > $flake2Dir/who
|
||||||
nix profile install $flake1Dir
|
nix profile install $flake1Dir
|
||||||
[[ $($TEST_HOME/.nix-profile/bin/hello) = "Hello World" ]]
|
[[ $($TEST_HOME/.nix-profile/bin/hello) = "Hello World" ]]
|
||||||
expect 1 nix profile install $flake2Dir
|
expect 1 nix profile install $flake2Dir
|
||||||
diff -u <(nix profile install $flake2Dir 2>&1 1> /dev/null || true) <(cat << EOF
|
diff -u <(
|
||||||
|
nix --offline profile install $flake2Dir 2>&1 1> /dev/null \
|
||||||
|
| grep -vE "^warning: " \
|
||||||
|
|| true
|
||||||
|
) <(cat << EOF
|
||||||
error: An existing package already provides the following file:
|
error: An existing package already provides the following file:
|
||||||
|
|
||||||
$(nix build --no-link --print-out-paths ${flake1Dir}"#default.out")/bin/hello
|
$(nix build --no-link --print-out-paths ${flake1Dir}"#default.out")/bin/hello
|
||||||
|
|
Loading…
Reference in a new issue