diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2025-09-18 15:16:22 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-22 22:09:48 +0100 |
commit | bc8676b46b9aa8a2f83d497b3face86415cdda3c (patch) | |
tree | 82a54a144b13db9b6a4ef724d887ecf6a090761e | |
parent | beb6ec5d59ba12d3a7bc16c88a60675bea1a21a8 (diff) | |
download | poky-bc8676b46b9aa8a2f83d497b3face86415cdda3c.tar.gz |
glib-2.0: double test runner timeout in run-ptest
The gnome-desktop-testing-runner has a default timeout of 300s. With
qemuriscv64, some tests in the glib-2.0 test suite (notably
codegen.py.test and gi-compile-repository.py.test) can take a long time
and exceed this timeout limit, resulting in intermittent test failures.
To avoid this problem, double the timeout by passing '-t 600' to
gnome-desktop-testing-runner.
Although not a perfect comparison (I have to use 'taskset --cpu-list 0'
to simulate loading in order to make the tests fail consistently on my
local machine), it's worth noting that the timeout increase does result
in a slightly longer test run. Here is an example of the duration when a
failure happens under 'taskset --cpu-list 0 runqemu nographic snapshot'::
|SUMMARY: total=298; passed=296; skipped=1; failed=1; user=606.7s; system=1388.3s; maxrss=170976
|FAIL: glib/codegen.py.test (Child process killed by signal 9)
|
|ERROR: Exit status is 2
|DURATION: 1368
|END: /usr/lib/glib-2.0/ptest
|2025-09-18T19:04
|STOP: ptest-runner
|TOTAL: 1 FAIL: 1
and a pass:
|SUMMARY: total=298; passed=297; skipped=1; failed=0; user=682.2s; system=1295.0s; maxrss=170476
|+ userdel glib2-test
|DURATION: 1402
|END: /usr/lib/glib-2.0/ptest
|2025-09-18T17:23
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0
[YOCTO #15891]
(From OE-Core rev: f634098ed6c5674d81028a7ea8e18a7a93a77fab)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/glib-2.0/files/run-ptest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/glib-2.0/files/run-ptest b/meta/recipes-core/glib-2.0/files/run-ptest index 831bc3b91f..8af5b09e85 100644 --- a/meta/recipes-core/glib-2.0/files/run-ptest +++ b/meta/recipes-core/glib-2.0/files/run-ptest | |||
@@ -6,5 +6,5 @@ if id -u glib2-test; then | |||
6 | fi | 6 | fi |
7 | useradd glib2-test | 7 | useradd glib2-test |
8 | cd /tmp | 8 | cd /tmp |
9 | su glib2-test -c 'G_TEST_TMPDIR=`readlink -f /tmp` gnome-desktop-testing-runner glib' | 9 | su glib2-test -c 'G_TEST_TMPDIR=`readlink -f /tmp` gnome-desktop-testing-runner -t 600 glib' |
10 | userdel glib2-test | 10 | userdel glib2-test |