[igt-dev] [PATCH i-g-t 2/2] runner: Print a message when aborting due to IGT_EXIT_ABORT

Petri Latvala petri.latvala at intel.com
Tue Jul 21 09:12:54 UTC 2020


Previously, when a test exited with IGT_EXIT_ABORT, we did abort but
did it silently. Print a message so runner logs tell a clear message
why we didn't execute the rest of the tests.

Signed-off-by: Petri Latvala <petri.latvala at intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
 runner/executor.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/runner/executor.c b/runner/executor.c
index 25e37bff..77818987 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1113,8 +1113,10 @@ static int monitor_output(pid_t child,
 					fdatasync(outputs[_F_JOURNAL]);
 				}
 
-				if (status == IGT_EXIT_ABORT)
+				if (status == IGT_EXIT_ABORT) {
+					errf("Test exited with IGT_EXIT_ABORT, aborting.\n");
 					aborting = true;
+				}
 
 				if (time_spent)
 					*time_spent = time;
-- 
2.20.1



More information about the igt-dev mailing list