From 8b91cd97a8de31056c72c7eda68ebbdf083e5356 Mon Sep 17 00:00:00 2001 From: Max Rossmannek Date: Thu, 26 Nov 2020 23:35:50 +0100 Subject: [PATCH] Enforce Python 3 in test_hooks/wrapper This change was not included in the previous commit because the sed command I used included the `/usr/bin/env` path to ensure I don't replace any occurences of the word `python` which I did not wish to replace. --- test/test_hooks/wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_hooks/wrapper.sh b/test/test_hooks/wrapper.sh index f34d8dfe5..276ce817b 100644 --- a/test/test_hooks/wrapper.sh +++ b/test/test_hooks/wrapper.sh @@ -6,7 +6,7 @@ IN="${ORIGINALHOOK}.log.in" OUT="${ORIGINALHOOK}.log.out" # Let it know that we were executed -echo "% Called at $(python -c 'import time; print(time.time())') with '$@'" >> ${IN} +echo "% Called at $(python3 -c 'import time; print(time.time())') with '$@'" >> ${IN} # Log what arrives via stdin to ${IN} and what comes via stdout to ${OUT} $ORIGINALHOOK "$@" < <(tee -a ${IN}) > >(tee -a ${OUT})