From 685ca9747062e2ba928b51ada967e97a343acc30 Mon Sep 17 00:00:00 2001 From: CK Tan Date: Thu, 10 Oct 2019 01:23:20 -0700 Subject: [PATCH] refine run.sh --- test2/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test2/run.sh b/test2/run.sh index 95504f8..d5b9b1d 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 - mv t.json $i.json.out - if (diff $i.json $i.json.out >& /dev/null); then + if (diff $i.json t.json >& /dev/null); then + mv t.json $i.json.failed res='[FAILED]' fi fi