You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix syntax and logic issues in tests_to_html.py (#2974)
This PR addresses bugs in `tests_to_html.py` that affect the generation of HTML test reports:
1. **Robust Suffix Stripping**: Replaces hardcoded string slicing lengths (`[0:-8]`) with Python's built-in `removesuffix()` method. This correctly handles variable-length language suffixes (e.g., `_glsl.png` which is 9 characters vs `_osl.png` which is 8 characters), preventing filename truncation bugs.
2. **CSS Syntax Error**: Adds a trailing newline (`\n`) to the `@media print` block to prevent it from concatenating directly with the following `td` rule, which produces invalid CSS.
3. **Three-way Comparison Bug**: Fixes a copy-paste error where `path3` was joined with `args.inputdir2` instead of `args.inputdir3`.
0 commit comments