diff mbox series

[14/15] report: record ext*-specific information about a test run

Message ID 167884162954.2482843.191249534178669922.stgit@magnolia (mailing list archive)
State New, archived
Headers show
Series fstests: improve junit xml reporting | expand

Commit Message

Darrick J. Wong March 15, 2023, 12:53 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Report various ext* specific information about a test run.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 common/ext4   |    5 +++++
 common/report |    1 +
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/common/ext4 b/common/ext4
index 8fd6dbc682..3dcbfe17c9 100644
--- a/common/ext4
+++ b/common/ext4
@@ -2,6 +2,11 @@ 
 # ext4 specific common functions
 #
 
+__generate_ext4_report_vars() {
+	__generate_blockdev_report_vars TEST_LOGDEV
+	__generate_blockdev_report_vars SCRATCH_LOGDEV
+}
+
 _setup_large_ext4_fs()
 {
 	local fs_size=$1
diff --git a/common/report b/common/report
index 86274af887..db15aec54f 100644
--- a/common/report
+++ b/common/report
@@ -66,6 +66,7 @@  __generate_report_vars() {
 
 	# Add per-filesystem variables to the report variable list
 	test "$FSTYP" = "xfs" && __generate_xfs_report_vars
+	[[ "$FSTYP" == ext[0-9]* ]] && __generate_ext4_report_vars
 
 	# Optional environmental variables
 	for varname in "${REPORT_ENV_LIST_OPT[@]}"; do