Debug github build

This commit is contained in:
Mike Farah 2022-01-27 14:00:55 +11:00
parent 3ba728d40c
commit 25e374f4ee

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -o
setUp() { setUp() {
rm test*.yml || true rm test*.yml || true
cat >test.yml <<EOL cat >test.yml <<EOL
@ -11,7 +13,7 @@ EOL
# golang thinks yq has stdin pipeinto it (ModeNamedPipe is set, ModeCharDevice is not) # golang thinks yq has stdin pipeinto it (ModeNamedPipe is set, ModeCharDevice is not)
# explicitly add an expression so it doesnt try to read 'test.yml' as one... # explicitly add an expression so it doesnt try to read 'test.yml' as one...
testEmptyEval() { testEmptyEval() {
X=$(./yq e "." test.yml) X=$(./yq e test.yml)
expected=$(cat test.yml) expected=$(cat test.yml)
assertEquals 0 $? assertEquals 0 $?
assertEquals "$expected" "$X" assertEquals "$expected" "$X"