tests: Adjust timeouts to avoid CI failures
The virtual-image test is quite CPU intensive and can take a long time in the CI setup. Adjust the timeouts so that it runs reliably.
This commit is contained in:
parent
c26588942a
commit
1528c962fa
2 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,7 @@ test:
|
||||||
script:
|
script:
|
||||||
- meson --werror -Ddrivers=all -Db_coverage=true . _build
|
- meson --werror -Ddrivers=all -Db_coverage=true . _build
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
- meson test -C _build --verbose --no-stdsplit --timeout-multiplier 3
|
- meson test -C _build --verbose --no-stdsplit
|
||||||
- ninja -C _build coverage
|
- ninja -C _build coverage
|
||||||
- cat _build/meson-logs/coverage.txt
|
- cat _build/meson-logs/coverage.txt
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
|
@ -30,6 +30,7 @@ if get_option('introspection')
|
||||||
unittest_inspector = find_program('unittest_inspector.py')
|
unittest_inspector = find_program('unittest_inspector.py')
|
||||||
base_args = files('virtual-image.py')
|
base_args = files('virtual-image.py')
|
||||||
suite = []
|
suite = []
|
||||||
|
timeout = 30
|
||||||
|
|
||||||
r = run_command(unittest_inspector, files('virtual-image.py'))
|
r = run_command(unittest_inspector, files('virtual-image.py'))
|
||||||
unit_tests = r.stdout().strip().split('\n')
|
unit_tests = r.stdout().strip().split('\n')
|
||||||
|
@ -38,6 +39,7 @@ if get_option('introspection')
|
||||||
suite += 'virtual-image'
|
suite += 'virtual-image'
|
||||||
else
|
else
|
||||||
unit_tests = ['virtual-image']
|
unit_tests = ['virtual-image']
|
||||||
|
timeout = 120
|
||||||
endif
|
endif
|
||||||
|
|
||||||
foreach ut: unit_tests
|
foreach ut: unit_tests
|
||||||
|
@ -53,6 +55,7 @@ if get_option('introspection')
|
||||||
suite: ut_suite,
|
suite: ut_suite,
|
||||||
depends: libfprint_typelib,
|
depends: libfprint_typelib,
|
||||||
env: envs,
|
env: envs,
|
||||||
|
timeout: timeout,
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue