mirror of
https://github.com/git/git.git
synced 2025-03-26 02:17:03 +00:00
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>
This commit is contained in:
parent
84096814a8
commit
1fb3fb4e6d
@ -50,7 +50,7 @@ native_path() {
|
||||
# at runtime (e.g. via NTP). The 'clock_gettime(CLOCK_MONOTONIC)'
|
||||
# function could fix that but it is not in Python until 3.3.
|
||||
time_in_seconds() {
|
||||
(cd / && python -c 'import time; print(int(time.time()))')
|
||||
(cd / && "$PYTHON_PATH" -c 'import time; print(int(time.time()))')
|
||||
}
|
||||
|
||||
# Try to pick a unique port: guess a large number, then hope
|
||||
|
Loading…
x
Reference in New Issue
Block a user