From aee2add84a143e6b4c569f4e1b934aeb0776b724 Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Wed, 29 Jan 2025 23:53:31 +0100 Subject: [PATCH] Tests: Error on no test files being found for render_report.py This commit checks the total number of files being processed for rendering tests and causes it to emit a failure if none are found. This has the benefit of loudly failing if there is a configuration error instead of succeeding. Pull Request: https://projects.blender.org/blender/blender/pulls/133691 --- tests/python/modules/render_report.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py index 227556af40a..ecf5b9adf36 100755 --- a/tests/python/modules/render_report.py +++ b/tests/python/modules/render_report.py @@ -550,6 +550,10 @@ class Report: silently_failed_tests = [] all_files = list(blend_list(dirpath, self.device, self.blocklist)) all_files.sort() + if not list(blend_list(dirpath, self.device, [])): + print_message("No .blend files found in '{}'!".format(dirpath), 'FAILURE', 'FAILED') + return False + print_message("Running {} tests from 1 test case." . format(len(all_files)), 'SUCCESS', "==========")