File: 0005-tests-increase-check-checksums-timeout-to-300-second.patch

package info (click to toggle)
composefs 1.0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,040 kB
  • sloc: ansic: 9,004; sh: 416; python: 225; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Roland Hieber <rhi@pengutronix.de>
Date: Sat, 5 Apr 2025 00:47:42 +0200
Subject: tests: increase check-checksums timeout to 300 seconds

Meson applies a default timeout of 30 seconds to all tests [1]. Since
the check-checksums test is quite I/O-heavy, this might lead to timeouts
in CI builds depending on the load of the build machines. Increase it to
300 seconds (same as check-random-fuse) to be on the safe side.

  [1]: <https://mesonbuild.com/Unit-tests.html#other-test-options>

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Forwarded: https://github.com/composefs/composefs/pull/416
---
 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 30277c4..419fe55 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -67,7 +67,7 @@ endforeach
 tools_dir = meson.current_build_dir() / '../tools'
 
 test('check-units', find_program('test-units.sh'), args : [tools_dir])
-test('check-checksums', find_program('test-checksums.sh'), args : [tools_dir, meson.current_source_dir() / 'assets', ' '.join(test_assets)])
+test('check-checksums', find_program('test-checksums.sh'), args : [tools_dir, meson.current_source_dir() / 'assets', ' '.join(test_assets)], timeout : 300)
 test('check-dump-filtered', find_program('test-dump-filtered.sh'), args : [tools_dir, meson.current_source_dir() / 'assets'])
 test('check-random-fuse', find_program('test-random-fuse.sh'), args : [tools_dir], timeout : 300)
 should_fail_args = [tools_dir]