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.

(From OE-Core rev: c5be3b22a7d5b3f211080ecdf05a077f8b413ef2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2023-07-30 07:52:23 +01:00
parent 4606d55e95
commit 5d65d26db3

View File

@@ -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: