From 375e8a3137a1b7b9331d17f862af3036b20e32a4 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 6 Mar 2016 13:54:10 +0000 Subject: [PATCH] change -v options to match my needs --- tests/Flags/Urchin format | 2 +- tests/Flags/Urchin format with --color | 2 +- urchin | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/Flags/Urchin format b/tests/Flags/Urchin format index 46085b7..319e0d3 100755 --- a/tests/Flags/Urchin format +++ b/tests/Flags/Urchin format @@ -1,3 +1,3 @@ -$TEST_SHELL ../../urchin -v -s sh .testsuite/ | +$TEST_SHELL ../../urchin -vv -s sh .testsuite/ | sed -e 1d -e 's/. seconds\?/1 second/' > $tmp diff $tmp .urchin-output-expectation diff --git a/tests/Flags/Urchin format with --color b/tests/Flags/Urchin format with --color index e9ff028..9978a7e 100755 --- a/tests/Flags/Urchin format with --color +++ b/tests/Flags/Urchin format with --color @@ -1,3 +1,3 @@ -$TEST_SHELL ../../urchin --color --verbose --shell sh .testsuite/ | +$TEST_SHELL ../../urchin --color -vv --shell sh .testsuite/ | sed -e 1d -e 's/. seconds\?/1 second/' > $tmp diff $tmp .urchin-output-expectation-color diff --git a/urchin b/urchin index 0230e42..a23957b 100755 --- a/urchin +++ b/urchin @@ -455,9 +455,9 @@ effect when combined with --tap. the only output is the exit code. (default verbosity) Print names of failed tests and counts of passed, failed, and skipped tests. --v Print names of passed tests. --vv, --verbose Print stdout from failing tests. --vvv Print stdout from all tests. +-v Print stdout from failing tests. +-vv Print names of passed tests. +-vvv, --verbose Print stdout from all tests. -vvvv, --debug Print debugging messages (XXX not implemented) The remaining flags provide information about urchin. @@ -535,11 +535,11 @@ main() { -q|--quiet) print_not_ok=false print_margins=false;; - -v) print_ok=true;; - -vv|--verbose) print_ok=true - print_not_ok_stdout=true;; - -vvv) print_ok=true; - print_not_ok_stdout=true + -v) print_not_ok_stdout=true;; + -vv) print_not_ok_stdout=true + print_ok=true;; + -vvv|--verbose)print_not_ok_stdout=true + print_ok=true; print_ok_stdout=true;; -vvvv|--debug) echo 'Not implemented' > /dev/stderr && exit 1;;