From 50b7b708352dbf0d6670d9ae5668e3c215e28662 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 27 Jan 2017 17:30:27 +0100 Subject: [PATCH] tests: put screenshots to ./logs by default Logs is where we write all our custom test logs, let's also put the screenshots in the same place by default from cluttering the base directory. Signed-off-by: Pekka Paalanen Reviewed-by: Emilio Pozuelo Monfort Reviewed-by: Micah Fedke Reviewed-by: Quentin Glidic --- tests/weston-test-client-helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index 7957094f..fd6d5c84 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -912,9 +912,10 @@ output_path(void) char *path = getenv("WESTON_TEST_OUTPUT_PATH"); if (!path) - return "."; + return "./logs"; + return path; - } +} char* screenshot_output_filename(const char *basename, uint32_t seq)