From 345348fa463ebc423e1c5b46cb66a05ffd32a9e2 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Fri, 6 Nov 2015 23:40:03 +0000 Subject: [PATCH] set PYTHONDONTWRITEBYTECODE in one place --- tests/run-tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 27007f0..5c1c407 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -11,9 +11,9 @@ for python in python2.7 python3.4 do docker run --rm -it --volume="$script_dir/..:/rethinkstuff" internetarchive/rethinkdb /sbin/my_init -- \ bash -x -c "adduser --gecos=$user --disabled-password --quiet --uid=$uid $user \ - && sudo -u $user bash -x -c 'cd /rethinkstuff \ + && sudo PYTHONDONTWRITEBYTECODE=1 -u $user bash -x -c 'cd /rethinkstuff \ && virtualenv -p $python /tmp/venv \ && source /tmp/venv/bin/activate \ - && PYTHONDONTWRITEBYTECODE=1 pip install pytest . \ - && PYTHONDONTWRITEBYTECODE=1 py.test -v -s tests'" + && pip install pytest . \ + && py.test -v -s tests'" done