mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 08:19:35 +01:00
Fixup checks around the error message 'will not fetch unlocked input'
This commit is contained in:
parent
a989a23d1a
commit
cbb635159c
2 changed files with 3 additions and 3 deletions
|
|
@ -230,7 +230,7 @@ in
|
|||
# Fetching without a narHash should succeed if trust-github is set and fail otherwise.
|
||||
client.succeed(f"nix eval --raw --expr 'builtins.fetchTree github:github:fancy-enterprise/private-flake/{info['revision']}'")
|
||||
out = client.fail(f"nix eval --no-trust-tarballs-from-git-forges --raw --expr 'builtins.fetchTree github:github:fancy-enterprise/private-flake/{info['revision']}' 2>&1")
|
||||
assert "will not fetch unlocked input" in out, "--no-trust-tarballs-from-git-forges did not fail with the expected error"
|
||||
assert "doesn't fetch unlocked input" in out, "--no-trust-tarballs-from-git-forges did not fail with the expected error"
|
||||
|
||||
# Shut down the web server. The flake should be cached on the client.
|
||||
github.succeed("systemctl stop httpd.service")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue