1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Fix flake path in test

This commit is contained in:
Leandro Reina 2024-12-04 16:39:57 +01:00
parent 169d62a382
commit 9a7b14c233

View file

@ -193,13 +193,10 @@
}}' >{tempdir}/flake.nix
""")
fetched_flake = client.succeed(f"""
nix eval {tempdir}#.outPath
nix eval --raw {tempdir}#.outPath
""")
# strip leading and trailing quotes
fetched_flake_trimmed = fetched_flake.strip()[1:-1]
assert fetched_lfs == fetched_flake_trimmed, \
f"fetching as flake input (store path {fetched_flake_trimmed}) yielded a different result than using fetchGit (store path {fetched_lfs})"
assert fetched_lfs == fetched_flake, \
f"fetching as flake input (store path {fetched_flake}) yielded a different result than using fetchGit (store path {fetched_lfs})"
'';
}