Skip to content

Commit 776edd3

Browse files
asjkdave
authored andcommitted
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent a66cc39 commit 776edd3

File tree

1 file changed

+4
-4
lines changed
  • tests/misc-tests/034-metadata-uuid

1 file changed

+4
-4
lines changed

tests/misc-tests/034-metadata-uuid/test.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -167,22 +167,22 @@ check_completed() {
167167
# check that metadata uuid is indeed completed
168168
run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \
169169
"$1" | grep -q METADATA_UUID
170-
[ $? -eq 0 ] || _fail "metadata_uuid not set on $1"
170+
[ $? -eq 0 ] || _fail "check_completed: metadata_uuid not set on $1"
171171

172172
run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \
173173
"$2" | grep -q METADATA_UUID
174-
[ $? -eq 0 ] || _fail "metadata_uuid not set on $2"
174+
[ $? -eq 0 ] || _fail "check_completed: metadata_uuid not set on $2"
175175
}
176176

177177
check_flag_cleared() {
178178
# Ensure METADATA_UUID is not set
179179
run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \
180180
"$1" | grep -q METADATA_UUID
181-
[ $? -eq 1 ] || _fail "metadata_uuid not set on $1"
181+
[ $? -eq 1 ] || _fail "check_flag_cleared: metadata_uuid not set on $1"
182182

183183
run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \
184184
"$2" | grep -q METADATA_UUID
185-
[ $? -eq 1 ] || _fail "metadata_uuid not set on $2"
185+
[ $? -eq 1 ] || _fail "check_flag_cleared: metadata_uuid not set on $2"
186186
}
187187

188188
check_multi_fsid_change() {

0 commit comments

Comments
 (0)