diff --git a/test2/run.sh b/test2/run.sh index d5b9b1d..515e8c5 100644 --- a/test2/run.sh +++ b/test2/run.sh @@ -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