[PATCH i-g-t v3 3/3] runner/executor: Inform about terminating

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Nov 29 20:45:50 UTC 2024


Create a message before terminating a running test and
inform user what is a cause.

Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Reviewed-by: Jan Sokolowski <jan.sokolowski at intel.com>
Reviewed-by: Ryszard Knop <rk at dragonic.eu>
---
 runner/executor.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/runner/executor.c b/runner/executor.c
index 82e5ca5eb..49ae8c90d 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1336,8 +1336,12 @@ static int monitor_output(pid_t child,
 
 				aborting = true;
 				killed = SIGQUIT;
-				if (!kill_child(killed, child))
+				if (!kill_child(killed, child)) {
+					errf("Error terminating child with %s, errno=%d\n",
+					     killed == SIGQUIT ? "SIGQUIT" : "SIGKILL", errno);
+
 					return -1;
+				}
 				time_killed = time_now;
 
 				continue;
-- 
2.47.1



More information about the igt-dev mailing list