GWicke has submitted this change and it was merged. Change subject: Add -q flag to runtests.sh to suppress diff and update Usage note ......................................................................
Add -q flag to runtests.sh to suppress diff and update Usage note No diff / quiet mode is useful to run & commit tests on master followed by running & diffing on a patch set in a single commandline. Change-Id: If0c52e441ed6fec9f4c4937b18bfebd4519000a8 --- M js/tests/runtests.sh 1 file changed, 6 insertions(+), 5 deletions(-) Approvals: GWicke: Verified; Looks good to me, approved diff --git a/js/tests/runtests.sh b/js/tests/runtests.sh index 7fcee7b..d25ce14 100755 --- a/js/tests/runtests.sh +++ b/js/tests/runtests.sh @@ -1,10 +1,9 @@ #!/bin/sh # Simple test runner with result archival in results git repository # Usage: -# ./runtests.sh -c # wikitext -> HTML DOM tests and commit results -# ./runtests.sh -r -c # round-trip tests; commit -# ./runtests.sh # wikitext -> HTML DOM; only show diff (no commit) -# ./runtests.sh -r # round-trip tests; only show diff (no commit) +# ./runtests.sh -c # run all tests and commit results +# ./runtests.sh -c -q # run all tests and commit results, no diff +# ./runtests.sh # run all tests, only show diff (no commit) # Helper function to echo a message to stderr warn() { @@ -73,5 +72,7 @@ else git commit -m "`tail -11 all.txt`" all.txt || exit 1 fi - git diff HEAD~1 | less -R || exit 1 + if [ "$2" != '-q'];then + git diff HEAD~1 | less -R || exit 1 + fi fi -- To view, visit https://gerrit.wikimedia.org/r/51377 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If0c52e441ed6fec9f4c4937b18bfebd4519000a8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: MarkTraceur <mtrac...@member.fsf.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits