git-p4 tests: time_in_seconds should use $PYTHON_PATH
The time_in_seconds script should use $PYTHON_PATH, rather than just hard-coded python, so that users can override which version gets used, as is done for other python invocations. Signed-off-by: Luke Diamand <luke@diamand.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Luke Diamand committed
Apr 26, 2016 at 08:51 UTC
1fb3fb4e6d4709a3b8311deff4b109af67efb514
1 file changed
+1
-1
t/lib-git-p4.sh
+1
-1
@@ -50,7 +50,7 @@ native_path() {
50
# at runtime (e.g. via NTP). The 'clock_gettime(CLOCK_MONOTONIC)'
51
# function could fix that but it is not in Python until 3.3.
52
time_in_seconds() {
53
- (cd / && python -c 'import time; print(int(time.time()))')
53
+ (cd / && "$PYTHON_PATH" -c 'import time; print(int(time.time()))')
54
}
55
56
# Try to pick a unique port: guess a large number, then hope