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

Petri Latvala petri.latvala at intel.com
Wed Oct 16 11:13:52 UTC 2019


When adding timestamps to whatever runner prints, the error print
"Cannot execute $binary" was mistakenly also stamped. That's not
getting printed by the runner, it's getting printed by "the test
executed".

Signed-off-by: Petri Latvala <petri.latvala at 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



More information about the igt-dev mailing list