From 0537563c27cb6ced16968a6218272d7cf4139d4e Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Thu, 17 Dec 2015 02:31:41 +0000 Subject: [PATCH] Make check for image-should-fail quiet We perform a check for this file after an image build fails to see if it was intentional. This outputs a message which looks like the failure is a result of the check when the file is missing which is very confusing to users. Lets be more quiet about it. Change-Id: I9b1f6c7c57021d11b4f91cd3c33846fae692b928 --- tests/test_functions.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_functions.bash b/tests/test_functions.bash index f12d3ef0..6397d088 100644 --- a/tests/test_functions.bash +++ b/tests/test_functions.bash @@ -56,7 +56,7 @@ function run_disk_element_test() { trap "rm -rf $dest_dir /tmp/dib-test-should-fail" EXIT if break="after-error" break_outside_target=1 \ - break_cmd="cp \$TMP_MOUNT_PATH/tmp/dib-test-should-fail /tmp/ || true" \ + break_cmd="cp \$TMP_MOUNT_PATH/tmp/dib-test-should-fail /tmp/ 2>&1 > /dev/null || true" \ ELEMENTS_PATH=$DIB_ELEMENTS:$DIB_ELEMENTS/$element/test-elements \ $DIB_CMD -t tar -o $dest_dir/image -n $element $test_element; then if ! [ -f "$dest_dir/image.tar" ]; then