From 52ca745fb79d36d7587a7913639520c90a121168 Mon Sep 17 00:00:00 2001 From: Jeff Darcy Date: Mon, 14 Jul 2014 10:48:01 -0400 Subject: tests: make dd less noisy Also fixed one case in quota.t where error output is expected. There are probably other similar cases which can be fixed separately. Change-Id: If80fad0d9fcff6f8ca91d00f4f7b2d5f3fef4256 Signed-off-by: Jeff Darcy Reviewed-on: http://review.gluster.org/8298 Tested-by: Gluster Build System Reviewed-by: Humble Devassy Chirammal Reviewed-by: Prashanth Pai Reviewed-by: Vijay Bellur --- tests/include.rc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/include.rc') diff --git a/tests/include.rc b/tests/include.rc index c3c30b16af6..30dea01d2a7 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -299,3 +299,14 @@ alias EXPECT_WITHIN='_EXPECT_WITHIN $LINENO' alias EXPECT_KEYWORD='_EXPECT_KEYWORD $LINENO' alias TEST_IN_LOOP='_TEST_IN_LOOP $LINENO' shopt -s expand_aliases + +ostype=$(uname -s) +if [ x"$ostype" = x"Linux" ]; then + alias dd="dd status=none" +elif [ x"$ostype" = x"NetBSD" ]; then + alias dd="dd msgfmt=quiet" +fi +# MacOS doesn't seem to support either option. Doing nothing at all is +# probably the safest option there and on anything we don't recognize, but +# if you want to reduce the noise level and know the correct option for +# your favorite platform please feel free to add it here. -- cgit