[PATCH] Add a little more verbosity to test runs
Matt Palmer
mpalmer at hezmatt.org
Wed Dec 15 05:35:44 UTC 2010
---
testlib.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/testlib.sh b/testlib.sh
index 7d31888..faa27b9 100644
--- a/testlib.sh
+++ b/testlib.sh
@@ -127,9 +127,9 @@ expect_success() {
# run the test in subshell; successful commands should not output anything
# to stderr but may send output to stdout
if (if [ -z "$PBUILDER_TEST_VERBOSE" ]; then exec >/dev/null; fi; "$@"); then
- testlib_echo "OK" "$1"
+ testlib_echo "OK" "$@"
else
- testlib_echo "FAIL" "$1"
+ testlib_echo "FAIL" "$@"
fi
}
@@ -137,9 +137,9 @@ expect_fail() {
# run the test in subshell; failed commands may output anything to stdout
# and stderr
if (if [ -z "$PBUILDER_TEST_VERBOSE" ]; then exec >/dev/null 2>&1; fi; "$@"); then
- testlib_echo "FAIL" "$1"
+ testlib_echo "FAIL" "$@"
else
- testlib_echo "OK" "$1"
+ testlib_echo "OK" "$@"
fi
}
--
1.5.6.5
--qjNfmADvan18RZcF
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0003-Add-test-cases-for-checkbuilddep_archdeps.patch"
More information about the Pbuilder-maint
mailing list