Merge pull request #15098 from amaanq/fix-nix-shell-test

tests/functional: fix nix-shell fixed-output derivation test
This commit is contained in:
John Ericson
2026-01-27 17:26:11 +00:00
committed by GitHub

View File

@@ -280,9 +280,6 @@ assert (!(args ? inNixShell));
EOF
nix-shell "$TEST_ROOT"/shell-ellipsis.nix --run "true"
# FIXME unclear why this (newly made) test is failing in this case.
if ! isTestOnNixOS; then
# `nix develop` should also work with fixed-output derivations
# shellcheck disable=SC2016
nix develop -f "$shellDotNix" fixed -c bash -c '[[ -n $stdenv ]]'
fi
# `nix develop` should also work with fixed-output derivations
# shellcheck disable=SC2016
nix develop -f "$shellDotNix" fixed -c bash -c '[[ $FOO == "was a fixed-output derivation" ]]'