Skip to content

Commit 7e9ba03

Browse files
Fix retcode writing in run_pytorch_tests.py to ensure integer conversion
1 parent dda7e8c commit 7e9ba03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

external-builds/pytorch/run_pytorch_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def force_exit_with_code(retcode):
292292
retcode_file = Path("run_pytorch_tests_exit_code.txt")
293293
print(f"Writing retcode {retcode} to '{retcode_file}'")
294294
with open(retcode_file, "w") as f:
295-
f.write(str(retcode))
295+
f.write(str(int(retcode)))
296296

297297
print("Forcefully terminating to avoid https://github.com/ROCm/TheRock/issues/999")
298298

0 commit comments

Comments
 (0)