use python3 to test file-watch
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user