diff --git a/common/parsertest.sh b/common/parsertest.sh index 74748ff46405d4957e2397eec5f8c63caaf00cf0..121cba2540e780c9a9a6f04fc2695bbc7f912c79 100755 --- a/common/parsertest.sh +++ b/common/parsertest.sh @@ -1,5 +1,6 @@ #!/bin/bash +PARSERTEST_DIR=$(dirname $(readlink -f $0) ) # Input arguments function usage(){ echo "Usage: $0 [<workload-directory> (default: .)]" @@ -85,11 +86,12 @@ for job in $jobs; do testjson=${APPtest}${suffix} if [ -f ${testjson} ]; then echo -e "\n${testjson}:" - cat ${testjson} + python -c "import yaml; print yaml.dump( yaml.safe_load(open('${testjson}')))" if [ -f ${prodjson} ]; then if [ "$status2" == "" ]; then status2=0; fi echo -e "\nDIFFERENCES to ${prodjson}:" - diff ${testjson} ${prodjson} + $PARSERTEST_DIR/json-differ.py ${prodjson} ${testjson} + #diff ${testjson} ${prodjson} if [ $? -eq 0 ]; then echo "[None]" else