mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user