fixup! nix: develop: add tests for interactive shell

This commit is contained in:
Bob van der Linden 2023-11-16 15:12:31 +01:00
parent ceab20d056
commit eaa3629532
No known key found for this signature in database
GPG key ID: EEBE8E3EC4A31364
2 changed files with 2 additions and 1 deletions

View file

@ -45,6 +45,7 @@ if [[ -n "${NIX_DAEMON_PACKAGE:-}" ]]; then
DAEMON_PATH="${NIX_DAEMON_PACKAGE}/bin:$DAEMON_PATH"
fi
coreutils=@coreutils@
lsof=@lsof@
export dot=@dot@
export SHELL="@bash@"

View file

@ -54,7 +54,7 @@ BASH_INTERACTIVE_EXECUTABLE="$PWD/bash-interactive/bin/bash"
[[ "$(
nix develop --no-write-lock-file .#hello <<EOF
export PATH="$PATH"
ps --pid $$ --format exe --no-headers
$lsof -a -d txt -p \$$ 2>&1 | grep -o '/.*/bash'
EOF
)" -ef "$BASH_INTERACTIVE_EXECUTABLE" ]]