From 31a0dbb21ebfaa2b25f6b407cbdbb5da1509db29 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Mon, 4 Aug 2014 13:22:10 +0200 Subject: Regression test portability: xargs Linux xarg complains about an empty input, while NetBSD xargs does not. This breaks tests where xargs is in a pipe after a command that should be tested. Make sure we test the first command without xargs BUG: 764655 Change-Id: I754d7d52332221c462ce3594f4e8d8d62ae606d5 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/8280 Tested-by: Gluster Build System Reviewed-by: Harshavardhana Reviewed-by: Humble Devassy Chirammal Reviewed-by: Anand Avati --- tests/bugs/bug-765564.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/bugs/bug-765564.t') diff --git a/tests/bugs/bug-765564.t b/tests/bugs/bug-765564.t index 5e931d2d04c..fa8ead7f4f2 100644 --- a/tests/bugs/bug-765564.t +++ b/tests/bugs/bug-765564.t @@ -77,6 +77,7 @@ TEST mv $M0/h $M0/1; TEST $CLI volume start $V0 force; EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 1; +find $M0 2>/dev/null 1>/dev/null; find $M0 | xargs stat 2>/dev/null 1>/dev/null; TEST rm_mv_correctness; -- cgit