refine run.sh
This commit is contained in:
parent
685ca97470
commit
987f4ef0d7
|
@ -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
|
||||||
if (diff $i.json t.json >& /dev/null); then
|
mv t.json $i.json.out
|
||||||
mv t.json $i.json.failed
|
if [ -f $i.json ] && (diff $i.json $i.json.out >& /dev/null); then
|
||||||
res='[FAILED]'
|
res='[FAILED]'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue