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 <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Anand Jain 2023-08-24 15:14:12 +08:00 committed by David Sterba
parent bdfb83e7d3
commit e8e5537d8c
1 changed files with 4 additions and 4 deletions

View File

@ -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() {