mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-21 21:46:15 +02:00
tests/functional/shell.sh: account for IN_NIX3_SHELL
This commit is contained in:
parent
4a9c72b389
commit
e2d390dd3f
1 changed files with 2 additions and 0 deletions
|
@ -33,10 +33,12 @@ nix shell -f shell-hello.nix hello -c env > $TEST_ROOT/actual-env
|
|||
# - PATH is modified by nix shell
|
||||
# - _ is set by bash and is expectedf to differ because it contains the original command
|
||||
# - __CF_USER_TEXT_ENCODING is set by macOS and is beyond our control
|
||||
# - IN_NIX3_SHELL is set by nix shell
|
||||
sed -i \
|
||||
-e 's/PATH=.*/PATH=.../' \
|
||||
-e 's/_=.*/_=.../' \
|
||||
-e '/^__CF_USER_TEXT_ENCODING=.*$/d' \
|
||||
-e '/^IN_NIX3_SHELL=1$/d' \
|
||||
$TEST_ROOT/expected-env $TEST_ROOT/actual-env
|
||||
sort $TEST_ROOT/expected-env > $TEST_ROOT/expected-env.sorted
|
||||
sort $TEST_ROOT/actual-env > $TEST_ROOT/actual-env.sorted
|
||||
|
|
Loading…
Reference in a new issue