Start fakeroot faked in debug mode

This commit is contained in:
Lee Bousfield 2017-05-03 23:17:26 -06:00
parent 7c9a57bee5
commit 3e24ed4035
3 changed files with 8 additions and 2 deletions

View File

@ -19,5 +19,5 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
# no fakeroot on OS X
sudo tox -e $TOXENV -r
else
fakeroot -u tox -r
fakeroot -f scripts/faked-debug.sh -u tox -r
fi

2
Vagrantfile vendored
View File

@ -318,7 +318,7 @@ def run_tests(boxname)
# otherwise: just use the system python
if which fakeroot 2> /dev/null; then
echo "Running tox WITH fakeroot -u"
fakeroot -u tox --skip-missing-interpreters
fakeroot -f scripts/faked-debug.sh -u tox --skip-missing-interpreters
else
echo "Running tox WITHOUT fakeroot -u"
tox --skip-missing-interpreters

6
scripts/faked-debug.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if which faked; then
faked --debug "$@"
else
faked-sysv --debug "$@"
fi