diff --git a/run_tests.sh b/run_tests.sh index 2efcd5f..530661b 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,6 +1,7 @@ #!/bin/bash RESULTS=${RESULTS:-.} +ID=0 if [ -z "${FORMAT}" ] ; then FORMAT=TAP @@ -16,10 +17,20 @@ esac mkdir -p "${RESULTS}"/reports rm -rf "${RESULTS}"/reports/* +# unique id across files +# See TT#4590 +function fix_id() { + (( ID += 1)) + local tmp_id + tmp_id=$(printf "%05d\n" "$ID") + sed -i "s/id=\"00001\"/id=\"$tmp_id\"/" "$1" +} + function do_test() { - echo "testing $1 -> ${RESULTS}/reports/${1}.${EXT}" + local RES="${RESULTS}/reports/${1}.${EXT}" + echo "testing $1 -> ${RES}" if ${OUT_FORCE} ; then - cat< ${RESULTS}/reports/${1}.${EXT} + cat< "${RES}" EXPORT_ASSERT_TO_GLOBALS = true require "tests/${1}" ---- Control test output: @@ -29,23 +40,27 @@ lu:setVerbosity(1) lu:run() EOF else - cat<