From 7e6395bd8e1810ba8c4614afe15616378b5f7ef5 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Tue, 18 Dec 2012 18:44:54 +0530 Subject: tests: make EXPECT_WITHIN also fail on command failure Change-Id: I051bbe2344f19e647826ee177932ae8b95747ebd BUG: 764966 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.org/4334 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/bugs/bug-857330/common.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/bugs/bug-857330') diff --git a/tests/bugs/bug-857330/common.rc b/tests/bugs/bug-857330/common.rc index f2327a862..40da95e8c 100644 --- a/tests/bugs/bug-857330/common.rc +++ b/tests/bugs/bug-857330/common.rc @@ -67,4 +67,8 @@ function check-with-stored-task-id-xml() function get-task-status() { $CLI $COMMAND | grep -o $PATTERN + if [ ${PIPESTATUS[0]} -ne 0 ]; then + return 1 + fi + return 0 } -- cgit