diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py index 1117a7dcfa2..56b7d88d8bd 100755 --- a/tests/python/modules/render_report.py +++ b/tests/python/modules/render_report.py @@ -96,8 +96,12 @@ class Report: def __init__(self, title, output_dir, oiiotool, variation=None, blocklist=[]): self.title = title - self.output_dir = output_dir - self.global_dir = os.path.dirname(output_dir) + + # Normalize the path to avoid output_dir and global_dir being the same when a directory + # ends with a trailing slash. + self.output_dir = os.path.normpath(output_dir) + self.global_dir = os.path.dirname(self.output_dir) + self.reference_dir = 'reference_renders' self.reference_override_dir = None self.oiiotool = oiiotool