summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-30 07:52:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-30 07:54:44 +0100
commit5d65d26db3d43a304e789eafe4d2c0ea12abc041 (patch)
tree6c77ab8d7918bcc107fdd16fa4ef7f91fd50d5cc
parent4606d55e95722f8a4876a28e4f40eb07986da6f4 (diff)
downloadpoky-5d65d26db3d43a304e789eafe4d2c0ea12abc041.tar.gz
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>
-rw-r--r--meta/lib/oeqa/selftest/cases/rust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py
index efa27c18ff..7d148142fc 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):
294 end_time = time.time() 294 end_time = time.time()
295 295
296 ptestsuite = "rust" 296 ptestsuite = "rust"
297 self.ptest_section(ptestsuite, duration = end_time - start_time, logfile = builddir + "/summary.txt") 297 self.ptest_section(ptestsuite, duration = int(end_time - start_time), logfile = builddir + "/summary.txt")
298 filename = builddir + "/summary.txt" 298 filename = builddir + "/summary.txt"
299 test_results = parse_results(filename) 299 test_results = parse_results(filename)
300 for test in test_results: 300 for test in test_results: