Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:
- "tools/cf_diff.py"
- "tools/cf_ref.py"
- "tools/cfg_structure.py"
- "tools/conformance/**"
- "tools/cpu_ref.py"
- "tools/f32_fuzz.py"
- "tools/file_mode.py"
Expand Down Expand Up @@ -78,6 +79,7 @@ on:
- "tools/cf_diff.py"
- "tools/cf_ref.py"
- "tools/cfg_structure.py"
- "tools/conformance/**"
- "tools/cpu_ref.py"
- "tools/f32_fuzz.py"
- "tools/file_mode.py"
Expand Down
5 changes: 5 additions & 0 deletions scripts/check_compute_journal_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import re
import shutil
import subprocess
import sys
import tempfile
import time

Expand Down Expand Up @@ -95,6 +96,10 @@ def run(exe, root, device, strict):


if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("executable", type=Path, help="built d3d12_compute_journal_test.exe")
parser.add_argument("--device", help="optional LEONIDA_VK_DEVICE selector")
Expand Down
4 changes: 4 additions & 0 deletions scripts/compute_workers_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ def child():


if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
if sys.argv[1:] != ["--shard"]:
raise SystemExit(2)
child()
4 changes: 4 additions & 0 deletions scripts/corpus_watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,8 @@ def run_once():


if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
sys.exit(main())
1 change: 1 addition & 0 deletions tests/test_runner_calls_all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"test_a_failed_check_fails_only_its_own_test",
"test_out_via_directory_alias_into_corpus_is_a_usage_error",
"test_out_hard_link_to_carved_index_is_a_usage_error",
"test_out_named_like_the_optional_spirv_index",
},
}

Expand Down
4 changes: 4 additions & 0 deletions tools/compute_heap_layout_census.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def census(disasm, captured, per_program=False):


if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("disasm", type=Path)
parser.add_argument("--dispatch-log", action="append", default=[], type=Path)
Expand Down
4 changes: 4 additions & 0 deletions tools/game_run_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,8 @@ def main(argv=None) -> int:


if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
sys.exit(main())
4 changes: 4 additions & 0 deletions tools/stage_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ def main():


if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
sys.exit(main())