output crash log on install crash

pull/258/head
Joe Marshall 2024-01-26 22:28:46 +00:00
rodzic 0db514277f
commit 7ae6a23963
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -19,11 +19,11 @@ with tempfile.TemporaryDirectory() as td:
# blender 4.0 installing addon crashes sometimes on mac github actions... # blender 4.0 installing addon crashes sometimes on mac github actions...
for x in range(NUM_RETRIES): for x in range(NUM_RETRIES):
try: try:
subprocess.run(command, shell=True, check=True,capture_output=True) subprocess.run(command, shell=True, check=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT,text=True)
sys.exit(0) sys.exit(0)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print("Install addon failed, retrying:",e) print("Install addon failed, retrying:",e)
for line in e.stderr: for line in str(e.output):
if line.startswith("Writing: "): if line.startswith("Writing: "):
crash_file=pathlib.Path(line[len("Writing: "):]) crash_file=pathlib.Path(line[len("Writing: "):])
if crash_file.exists(): if crash_file.exists():