[igt-dev] [PATCH i-g-t 1/2] runner: Use exitcode 127 when resume is impossible

Arkadiusz Hiler arkadiusz.hiler at intel.com
Tue Jul 21 10:37:30 UTC 2020


On Tue, Jul 21, 2020 at 12:12:53PM +0300, Petri Latvala wrote:
> igt_resume is typically used in a scripted loop, with automatic
> reboots and retries. It already uses separate exit codes for being
> done (0), requiring a reboot and a retry (1) and requiring a retry due
> to exceeding its overall time quota (2). Introduce another exit code,
> 127, for circumstances where execution in the given directory is
> impossible and retrying would never terminate. One example case is
> a kernel bug causing the filesystem to go enough bonkers to make the
> runner settings files disappear.
> 
> As a drive-by improvement, also print something when that happens.
> 
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

on both patches


More information about the igt-dev mailing list