[tor-commits] [chutney/master] unit-tests.sh: Allow unset PYTHONPATH

nickm at torproject.org nickm at torproject.org
Wed Jun 24 14:12:20 UTC 2020


commit cf9316655ede8727758cdc8beb353fb7a5d20c15
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jun 24 10:12:16 2020 -0400

    unit-tests.sh: Allow unset PYTHONPATH
---
 tests/unit-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit-tests.sh b/tests/unit-tests.sh
index 82688e6..487d462 100755
--- a/tests/unit-tests.sh
+++ b/tests/unit-tests.sh
@@ -66,7 +66,7 @@ export LOG_FILE
 test -n "$LOG_FILE"
 
 # Choose an arbitrary port
-PYTHONPATH=$PYTHONPATH:lib $PYTHON lib/chutney/Traffic.py 9999 \
+PYTHONPATH="${PYTHONPATH:-}:lib" $PYTHON lib/chutney/Traffic.py 9999 \
     | tee "$LOG_FILE"
 
 # Traffic.py produces output with a single newline. But we don't want to get



More information about the tor-commits mailing list