refine run.sh

This commit is contained in:
CK Tan 2019-10-10 01:28:09 -07:00
parent 685ca97470
commit 987f4ef0d7
1 changed files with 2 additions and 2 deletions

View File

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