[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit cf9316655ede8727758cdc8beb353fb7a5d20c15
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits