From 0b77ca002ff39f25939568ae2992278a35990ab8 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 2 Dec 2006 11:33:03 +1300 Subject: [PATCH] Allow a forced 'yes' to all. --- testing/run_regressions.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/run_regressions.sh b/testing/run_regressions.sh index f8ceb49c..259c1ba4 100755 --- a/testing/run_regressions.sh +++ b/testing/run_regressions.sh @@ -4,6 +4,7 @@ # DBNAME=caldav UNTIL=${1:-"99999"} +ACCEPT_ALL=${2:-""} REGRESSION="tests/regression-suite" RESULTS="${REGRESSION}/results" @@ -20,7 +21,11 @@ check_result() { echo "Displaying diff for test ${TEST}" echo "=======================================" cat "${REGRESSION}/diffs/${TEST}" - read -p "Accept this as new standard result [y/N]? " ACCEPT + if [ "${ACCEPT_ALL}" = "" ] ; then + read -p "Accept this as new standard result [y/N]? " ACCEPT + else + ACCEPT=${ACCEPT_ALL} + fi if [ "${ACCEPT}" = "y" ] ; then cp "${RESULTS}/${TEST}" "${REGRESSION}/${TEST}.result" fi