mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Debug github build
This commit is contained in:
parent
3ba728d40c
commit
25e374f4ee
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user