From 123133c99c6ca4b40e8667a90703b7df695e2488 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 6 Sep 2016 09:32:05 +0200 Subject: [PATCH] test: Return if retrieve failed --- imag-store/tests/002-retrieve_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imag-store/tests/002-retrieve_test.sh b/imag-store/tests/002-retrieve_test.sh index 63ed6e97..69529ec3 100644 --- a/imag-store/tests/002-retrieve_test.sh +++ b/imag-store/tests/002-retrieve_test.sh @@ -23,7 +23,7 @@ test_retrieve_nothing() { imag-store create -p ${id} || { err "create failed"; return 1; } out "Going to test the retrieve functionality now" - local zero_out="$(retrieve --id ${id})" + local zero_out="$(retrieve --id ${id})" || return 1 out "Retrieving for zero_out finished" if [[ ! -z "$zero_out" ]]; then @@ -39,7 +39,7 @@ test_retrieve_content() { out "Going to test the retrieve functionality now" - local content_out="$(retrieve --id ${id} --content)" + local content_out="$(retrieve --id ${id} --content)" || return 1 out "Retrieving for content_out finished" if [[ ! -z "$content_out" ]]; then