diff mbox series

btrfs-progs: tests: misc-test prefix error messages

Message ID baf62c9b8a2fb1410a80dbf023b14261e02692d2.1692861044.git.anand.jain@oracle.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: tests: misc-test prefix error messages | expand

Commit Message

Anand Jain Aug. 24, 2023, 7:14 a.m. UTC
Add appropriate prefix to the error messages for easier traceback.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 tests/misc-tests/034-metadata-uuid/test.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

David Sterba Aug. 28, 2023, 3:48 p.m. UTC | #1
On Thu, Aug 24, 2023 at 03:14:12PM +0800, Anand Jain wrote:
> Add appropriate prefix to the error messages for easier traceback.
> 
> Signed-off-by: Anand Jain <anand.jain@oracle.com>

Added to devel with updated changelog, thanks.
diff mbox series

Patch

diff --git a/tests/misc-tests/034-metadata-uuid/test.sh b/tests/misc-tests/034-metadata-uuid/test.sh
index 77a310d54f0f..88e468d96748 100755
--- a/tests/misc-tests/034-metadata-uuid/test.sh
+++ b/tests/misc-tests/034-metadata-uuid/test.sh
@@ -149,22 +149,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() {