Skip to content

Commit c945ffb

Browse files
committed
pass user and home through from tox instead of using id to derive them
The id command being used does not work on Linux.
1 parent 6f45113 commit c945ffb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/setup.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,3 @@ export WORKON_HOME=$(mktemp -d -t "WORKON_HOME.XXXX.$$")
1010
export PROJECT_HOME=$(mktemp -d -t "PROJECT_HOME.XXXX.$$")
1111

1212
#unset HOOK_VERBOSE_OPTION
13-
14-
# tox no longer exports these variables by default, so set them
15-
# ourselves to ensure the tests that rely on the values work
16-
export USER=$(id -u -n)
17-
export HOME=$(id -P | cut -f9 -d:)

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ envlist = py,zsh,style
55
install_command = pip install -U {opts} {packages}
66
commands = bash ./tests/run_tests {envdir} []
77
deps = -rrequirements.txt
8+
pass_env =
9+
HOME
10+
USER
811
setenv =
912
TOXIC = true
1013
SHELL = /bin/bash

0 commit comments

Comments
 (0)