refine run.sh

This commit is contained in:
CK Tan 2019-10-10 01:23:20 -07:00
parent 896561d5b7
commit 685ca97470

View file

@ -11,8 +11,8 @@ for i in toml-spec-tests/values/*.toml; do
res='[OK]' res='[OK]'
if (../toml_json $i >& $i.json.out); then if (../toml_json $i >& $i.json.out); then
jq . $i.json.out > t.json jq . $i.json.out > t.json
mv t.json $i.json.out if (diff $i.json t.json >& /dev/null); then
if (diff $i.json $i.json.out >& /dev/null); then mv t.json $i.json.failed
res='[FAILED]' res='[FAILED]'
fi fi
fi fi