From 1f849cfb8e2c18362e5a79bddd55e54fcd723182 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 19 Nov 2020 19:41:31 -0700 Subject: [PATCH] use python3 to test file-watch --- projects/file-watch/test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/file-watch/test.sh b/projects/file-watch/test.sh index 479a3bc3..9a9d052e 100755 --- a/projects/file-watch/test.sh +++ b/projects/file-watch/test.sh @@ -7,6 +7,12 @@ if [[ $(uname) == *"MINGW"* ]] || [ $TRAVIS_OS_NAME = "windows" ]; then expected=$'"hey" \r\n"hey" \r\n"hey"' fi +whichpy=python +# "python" is supposed to mean Python3 everywhere now, but not in practice +if [ ! -z "$(which python3)" ]; then + whichpy=python3 +fi + haxe build.hxml && \ -timeout 0.35 python bin/main.py test-file.txt 0.1 "echo {} >> test-output.txt" 0 || \ +timeout 0.35 $whichpy bin/main.py test-file.txt 0.1 "echo {} >> test-output.txt" 0 || \ if [[ "$(cat test-output.txt)" != *"$expected"* ]]; then exit 1; fi \ No newline at end of file