[PATCH i-g-t 20/25] Pass skip prints to runner too

Petri Latvala petri.latvala at intel.com
Fri Mar 12 08:47:53 UTC 2021


---
 lib/igt_core.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 9f583089..beb2dade 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1522,7 +1522,15 @@ void igt_skip(const char *f, ...)
 
 	if (!igt_only_list_subtests()) {
 		va_start(args, f);
-		vprintf(f, args);
+		if (runner_connected()) {
+			char *str;
+
+			vasprintf(&str, f, args);
+			send_to_runner(runnerpacket_log(STDOUT_FILENO, str));
+			free(str);
+		} else {
+			vprintf(f, args);
+		}
 		va_end(args);
 	}
 
-- 
2.29.2



More information about the Intel-gfx-trybot mailing list