This works great thanks. ill add this to the debian wiki page. On Sun, 17 Nov 2024, 17:20 Johannes Schauer Marin Rodrigues, < jo...@debian.org> wrote:
> Hi Richard, > > Quoting Richard Lewis (2024-11-17 11:43:11) > > $stalled_pkg_timeout terminates the build after inactivity, but it would > be > > nice if there was an equivalent for the use of piuparts (--run-piuparts) > or > > (--run-autopkgtests) > > > > Especially with piuparts it is easy to start a build, and it will be hang > > waiting for a sudo password > > > > The documentation in sbuild.conf says this is based on writes to the > build > > log, but this does not include writes from piuparts or autopkgtests > > > > I tried > > $piuparts_root_args=['timeout', '20m', 'sudo', '--']; > > but it did not kill the sudo call > > from timeout(1): > > --foreground > when not running timeout directly from a shell prompt, > allow COMMAND to read from the TTY and get TTY signals;, > > Did you try running timeout with the --foreground option? > > Thanks! > > cheers, josch