787,790c787,795
< # Check for 'timeout' from GNU coreutils. If present, regressions
< # will be run with a time limit.
< TIMEOUT_version = readCommand(['timeout', '--version'], exception=False)
< main['TIMEOUT'] = TIMEOUT_version and TIMEOUT_version.find('timeout') == 0
---
> # Check for 'timeout' from GNU coreutils. If present, regressions will
> # be run with a time limit. We require version 8.13 since we rely on
> # support for the '--foreground' option.
> timeout_lines = readCommand(['timeout', '--version'],
> exception='').splitlines()
> # Get the first line and tokenize it
> timeout_version = timeout_lines[0].split() if timeout_lines else []
> main['TIMEOUT'] = timeout_version and \
> compareVersions(timeout_version[-1], '8.13') >= 0