[igt-dev] [PATCH i-g-t v2 4/4] runner: Don't add timestamps when cannot exec a test

Petri Latvala
2019-10-16T12:03:02Z

Don't add timestamps when printing that we cannot execute a binary
from a child (post fork-failed-execv). Timestamps were meant for
runner's direct output only, and this was accidentally converted.

v2: Rephrase commit message (Arek)

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

diff --git a/runner/executor.c b/runner/executor.c
index 2bb82827..ba58fb17 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1032,7 +1032,7 @@ execute_test_process(int outfd, int errfd,
}

execv(argv[0], argv);
- errf("Cannot execute %s\n", argv[0]);
+ fprintf(stderr, "Cannot execute %s\n", argv[0]);
exit(IGT_EXIT_INVALID);
}

--
2.19.1