summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-857330
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-857330')
-rw-r--r--tests/bugs/bug-857330/common.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bugs/bug-857330/common.rc b/tests/bugs/bug-857330/common.rc
index f2327a86217..40da95e8c33 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
}