aboutsummaryrefslogtreecommitdiff
path: root/tests/nix-profile.sh
diff options
context:
space:
mode:
authorThéophane Hufschmitt <theophane.hufschmitt@tweag.io>2023-04-03 20:47:21 +0200
committerThéophane Hufschmitt <theophane.hufschmitt@tweag.io>2023-04-03 20:47:21 +0200
commit7076d37047d73e82cb51c315fede4906a76f57b2 (patch)
tree68925189a46fc5e5f49b04d4495c5cb7247c0291 /tests/nix-profile.sh
parent81491e1379138e69138e30d18210badbd0765b89 (diff)
Fix the flaky `nix-profile` test
Exclude the `error (ignored)` from the message that is checked by the install conflict test. Fix https://github.com/NixOS/nix/issues/8140
Diffstat (limited to 'tests/nix-profile.sh')
-rw-r--r--tests/nix-profile.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh
index 652e8a8f2..4ef5b484a 100644
--- a/tests/nix-profile.sh
+++ b/tests/nix-profile.sh
@@ -144,6 +144,7 @@ expect 1 nix profile install $flake2Dir
diff -u <(
nix --offline profile install $flake2Dir 2>&1 1> /dev/null \
| grep -vE "^warning: " \
+ | grep -vE "^error \(ignored\): " \
|| true
) <(cat << EOF
error: An existing package already provides the following file: