Skip to content

Commit 1fb3fb4

Browse files
luked99gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8409681 commit 1fb3fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib-git-p4.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ native_path() {
5050
# at runtime (e.g. via NTP). The 'clock_gettime(CLOCK_MONOTONIC)'
5151
# function could fix that but it is not in Python until 3.3.
5252
time_in_seconds() {
53-
(cd / && python -c 'import time; print(int(time.time()))')
53+
(cd / && "$PYTHON_PATH" -c 'import time; print(int(time.time()))')
5454
}
5555

5656
# Try to pick a unique port: guess a large number, then hope

0 commit comments

Comments
 (0)