aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-05-05 16:16:56 +0200
committerGitHub <noreply@github.com>2022-05-05 16:16:56 +0200
commitf4102de84ba4dd3b845a3e34fabab5400e066ad0 (patch)
tree27983781848a079f130c501ecf75744909e37dad /tests
parentf2a15091c2cd172ed589be76bae67148ceebca79 (diff)
parent4c5aa8520c501cae904b9dc3a2c1fc90d2f0af83 (diff)
Merge pull request #6489 from alexshpilkin/fix-6488
nix: Add forgotten null check in AttrCursor::getListOfStrings()
Diffstat (limited to 'tests')
-rw-r--r--tests/build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/build.sh b/tests/build.sh
index ff16d1603..fc6825e25 100644
--- a/tests/build.sh
+++ b/tests/build.sh
@@ -56,6 +56,13 @@ nix build -f multiple-outputs.nix --json 'e^*' --no-link | jq --exit-status '
(.outputs | keys == ["a", "b", "c"]))
'
+# Make sure that `--impure` works (regression test for https://github.com/NixOS/nix/issues/6488)
+nix build --impure -f multiple-outputs.nix --json e --no-link | jq --exit-status '
+ (.[0] |
+ (.drvPath | match(".*multiple-outputs-e.drv")) and
+ (.outputs | keys == ["a", "b"]))
+'
+
testNormalization () {
clearStore
outPath=$(nix-build ./simple.nix --no-out-link)