From: Darrick J. Wong Date: Wed, 15 Mar 2023 00:52:59 +0000 (-0700) Subject: report: record fstests start and report generation timestamps X-Git-Tag: v2023.03.26~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8963ceb25ef375bdc8cd89bdcaf87f72d9cc7ac;p=xfstests-dev.git report: record fstests start and report generation timestamps Report two new timestamps in the xml report: the time that ./check was started, and the time that the report was generated. We introduce new timestamps to minimize breakage with parsing scripts. Signed-off-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/check b/check index f2be3d7d..1a58a2b2 100755 --- a/check +++ b/check @@ -668,6 +668,7 @@ _run_seq() { _detect_kmemleak _prepare_test_list +fstests_start_time="$(date +"%F %T")" if $OPTIONS_HAVE_SECTIONS; then trap "_summary; exit \$status" 0 1 2 3 15 diff --git a/common/report b/common/report index 8e19e9f5..be991b55 100644 --- a/common/report +++ b/common/report @@ -62,7 +62,9 @@ _xunit_make_section_report() name="xfstests" failures="$bad_count" skipped="$notrun_count" tests="$tests_count" time="$sect_time" hostname="$HOST" - timestamp="$timestamp" + start_timestamp="$(date -Iseconds --date="$fstests_start_time")" + timestamp="$timestamp" + report_timestamp="$(date -Iseconds)" > ENDL diff --git a/doc/xunit.xsd b/doc/xunit.xsd index 653f4868..3ed72f2f 100644 --- a/doc/xunit.xsd +++ b/doc/xunit.xsd @@ -187,6 +187,16 @@ Time that the last testcase was started. If no tests are started, this is the time the report was generated. Timezone must be specified as an offset from UTC. + + + Time that the report was generated. + + + + + Time that fstests was started. + + Host on which the tests were executed. 'localhost' should be used if the hostname cannot be determined.