aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/user-envs.sh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 05:59:15 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 05:59:15 +0100
commit340a6cf97796ffde4afe7bd7af5619e1cf821c7b (patch)
tree1667322878fd3bfc7b2a514a207ede053208a4b8 /tests/functional/user-envs.sh
parent01069d8c467f181e1a13f10486a25473a1a0b386 (diff)
Merge pull request #9257 from Artturin/nixenvjsondrvpath
`nix-env --query`: fix `--json` ignoring `--drv-path` (cherry picked from commit 516e7ddc41f39ff939b5d5b5dc71e590f24890d4) Change-Id: I84b5bccea9d0383e2e74544743b703942e7be547
Diffstat (limited to 'tests/functional/user-envs.sh')
-rw-r--r--tests/functional/user-envs.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/user-envs.sh b/tests/functional/user-envs.sh
index d1260ba04..dcd6b1b97 100644
--- a/tests/functional/user-envs.sh
+++ b/tests/functional/user-envs.sh
@@ -26,6 +26,7 @@ nix-env -f ./user-envs.nix -qa --json --out-path | jq -e '.[] | select(.name ==
.outputName == "out",
(.outputs.out | test("'$NIX_STORE_DIR'.*-0\\.1"))
] | all'
+nix-env -f ./user-envs.nix -qa --json --drv-path | jq -e '.[] | select(.name == "bar-0.1") | (.drvPath | test("'$NIX_STORE_DIR'.*-0\\.1\\.drv"))'
# Query descriptions.
nix-env -f ./user-envs.nix -qa '*' --description | grepQuiet silly