From e8e5537d8c79666356639bea7f5aee72b6b05862 Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Thu, 24 Aug 2023 15:14:12 +0800 Subject: [PATCH] btrfs-progs: tests: add prefixes to error messages in misc-test/034 Add appropriate prefix to the error messages to make it easier to track down which case failed. Signed-off-by: Anand Jain Signed-off-by: David Sterba --- tests/misc-tests/034-metadata-uuid/test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/misc-tests/034-metadata-uuid/test.sh b/tests/misc-tests/034-metadata-uuid/test.sh index f2daa763..479c7da7 100755 --- a/tests/misc-tests/034-metadata-uuid/test.sh +++ b/tests/misc-tests/034-metadata-uuid/test.sh @@ -167,22 +167,22 @@ check_completed() { # check that metadata uuid is indeed completed run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \ "$1" | grep -q METADATA_UUID - [ $? -eq 0 ] || _fail "metadata_uuid not set on $1" + [ $? -eq 0 ] || _fail "check_completed: metadata_uuid not set on $1" run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \ "$2" | grep -q METADATA_UUID - [ $? -eq 0 ] || _fail "metadata_uuid not set on $2" + [ $? -eq 0 ] || _fail "check_completed: metadata_uuid not set on $2" } check_flag_cleared() { # Ensure METADATA_UUID is not set run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \ "$1" | grep -q METADATA_UUID - [ $? -eq 1 ] || _fail "metadata_uuid not set on $1" + [ $? -eq 1 ] || _fail "check_flag_cleared: metadata_uuid not set on $1" run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \ "$2" | grep -q METADATA_UUID - [ $? -eq 1 ] || _fail "metadata_uuid not set on $2" + [ $? -eq 1 ] || _fail "check_flag_cleared: metadata_uuid not set on $2" } check_multi_fsid_change() {