jjb: fix lttng-analyses tox build
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Aug 2016 20:11:51 +0000 (16:11 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Aug 2016 20:11:51 +0000 (16:11 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-analyses/build.sh

index 446245625d5076dc38f6255817df910ec4aa4436..ef19043d64836f194b2ffb1450cb06fa65107e1d 100755 (executable)
@@ -39,18 +39,18 @@ fi
 # Create virtualenv and install necessary packages
 virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME"
 
-set +u
+set +ux
 . "$PYENV_HOME/bin/activate"
-set -u
+set -ux
 
 pip install --quiet codecov
 pip install --quiet tox
 
+cd "$SRCDIR"
+
 # Hack for path too long in venv wrapper shebang
-TMPDIR=$(mktemp -d)
-cd "$TMPDIR"
-ln -s "$WORKSPACE/$SRCDIR" src
-cd src
+TOXWORKDIR=$(mktemp -d)
+export TOXWORKDIR
 
 # Run base test suites and long regression test suite
 for suite in py3 noutf8 pep8 longregression; do
@@ -60,3 +60,6 @@ for suite in py3 noutf8 pep8 longregression; do
 done
 
 unset TOXENV
+rm -rf "$TOXWORKDIR"
+
+# EOF
This page took 0.023713 seconds and 4 git commands to generate.