diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:50:02 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:50:02 +0100 |
commit | 5f2eaa1b3596d9354f6111d493be208867594352 (patch) | |
tree | 092a84a6f3ae05301ff5d6be1a39f746ef353132 /tests/functional/fixed.sh | |
parent | aac8416eac606c1b6253ae78b8b3168c718366bd (diff) |
Merge pull request #9662 from shlevy/flat-fixed-references-assert
Improve error message for fixed-outputs with references.
(cherry picked from commit ff6de4a9ee6c3862db9ee5f09ff9c3f43ae7a088)
Change-Id: I733c49760b9a3f1b76a6bece3b250b8579cd6cac
Diffstat (limited to 'tests/functional/fixed.sh')
-rw-r--r-- | tests/functional/fixed.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/fixed.sh b/tests/functional/fixed.sh index f1e1ce420..d98d4cd15 100644 --- a/tests/functional/fixed.sh +++ b/tests/functional/fixed.sh @@ -26,6 +26,11 @@ nix-build fixed.nix -A good2 --no-out-link echo 'testing reallyBad...' nix-instantiate fixed.nix -A reallyBad && fail "should fail" +if isDaemonNewer "2.20pre20240108"; then + echo 'testing fixed with references...' + expectStderr 1 nix-build fixed.nix -A badReferences | grepQuiet "not allowed to refer to other store paths" +fi + # While we're at it, check attribute selection a bit more. echo 'testing attribute selection...' test $(nix-instantiate fixed.nix -A good.1 | wc -l) = 1 |