For some reason, tests have been coming back as always positive (despite
some tests which are failing...)

This PR addresses it
This commit is contained in:
Charlie Drage
2019-10-25 17:33:11 +08:00
committed by Hang Yan
parent f63a961ca7
commit d0526d1d75
3 changed files with 11 additions and 13 deletions
+1 -2
View File
@@ -844,10 +844,9 @@ convert::expect_success "$cmd" "/tmp/output-os.json"
cmd="kompose convert --stdout -j -f -"
sed -e "s;%VERSION%;$version;g" -e "s;%CMD%;$cmd;g" $KOMPOSE_ROOT/script/test/fixtures/stdin/output-k8s.json > /tmp/output-k8s.json
cat $KOMPOSE_ROOT/script/test/fixtures/stdin/docker-compose.yaml | $cmd | diff /tmp/output-k8s.json -
EXIT_STATUS=$?
echo -e "\n"
go test -v github.com/kubernetes/kompose/script/test/cmd
rm /tmp/output-k8s.json /tmp/output-os.json
exit $EXIT_STATUS
exit $EXIT_STATUS