[igt-dev] [PATCH i-g-t 4/6] igt_core: Make sure test result gets to runner when test has no subtests

Petri Latvala
2022-11-07T12:02:08Z

One more raw printf, converted to the wrapper that sends to runner if
connected.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Arkadiusz Hiler <arek@hiler.eu>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
lib/igt_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index d4bef161..30b43715 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -2260,8 +2260,8 @@ void igt_exit(void)
result = "FAIL";
}

- printf("%s (%.3fs)\n",
- result, igt_time_elapsed(&subtest_time, &now));
+ _log_line_fprintf(stdout, "%s (%.3fs)\n",
+ result, igt_time_elapsed(&subtest_time, &now));
}

exit(igt_exitcode);
--
2.30.2