
The line `Output file *.out appears to exist, aborting` is confusing. The one common reason is permission denied because of the test desc is lack of suid flag. The zdtm.py will set `ZDTM_UID` and `ZDTM_GID`, the function `test_init()` (in `zdtm/lib/test.c`) will change tester itself to that uid and gid if no suid flag. Here print the errno when access *.out failed. Signed-off-by: fu.lin <fulin10@huawei.com> --- test/zdtm/lib/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/zdtm/lib/test.c b/test/zdtm/lib/test.c index e031357..dc34d99 100644 --- a/test/zdtm/lib/test.c +++ b/test/zdtm/lib/test.c @@ -74,8 +74,8 @@ static void test_fini(void) static void setup_outfile(void) { if (!access(outfile, F_OK) || errno != ENOENT) { - fprintf(stderr, "Output file %s appears to exist, aborting\n", - outfile); + fprintf(stderr, "Output file %s appears to exist, aborting: %s\n", + outfile, strerror(errno)); exit(1); } -- 2.27.0