From: Richard Purdie Date: Sun, 30 Jul 2023 06:52:23 +0000 (+0100) Subject: oeqa/selftest/rust: Round test execution time to integer X-Git-Tag: uninative-4.1~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5be3b22a7d5b3f211080ecdf05a077f8b413ef2;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oeqa/selftest/rust: Round test execution time to integer To match the other tests, round the test duration to an intger value so the test reports are consistent. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py index efa27c18ffb..7d148142fc7 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py @@ -294,7 +294,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): end_time = time.time() ptestsuite = "rust" - self.ptest_section(ptestsuite, duration = end_time - start_time, logfile = builddir + "/summary.txt") + self.ptest_section(ptestsuite, duration = int(end_time - start_time), logfile = builddir + "/summary.txt") filename = builddir + "/summary.txt" test_results = parse_results(filename) for test in test_results: