]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/selftest/rust: Round test execution time to integer
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Jul 2023 06:52:23 +0000 (07:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Jul 2023 06:53:54 +0000 (07:53 +0100)
To match the other tests, round the test duration to an intger value
so the test reports are consistent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/rust.py

index efa27c18ffb5d66c54e137f74278fa358990e6d0..7d148142fc7828abbc8c360e6890d841fd5b4b68 100644 (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: