working file-watch on windows
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
#! /bin/bash
|
||||
|
||||
haxelib dev kiss ../../
|
||||
haxe build.hxml
|
||||
python bin/main.py test
|
||||
echo "" > test-output.txt
|
||||
expected=$'hey\nhey\nhey'
|
||||
if [[ $(uname) == *"MINGW"* ]] || [ $TRAVIS_OS_NAME = "windows" ]; then
|
||||
expected=$'"hey" \r\n"hey" \r\n"hey"'
|
||||
fi
|
||||
|
||||
haxe build.hxml && \
|
||||
timeout 0.35 python 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