feat: PipBoy UI redesign, onglet OUTILS (stress test + lancement commandes), crash_results.json shared path
This commit is contained in:
@@ -269,7 +269,8 @@ def print_report(results: dict, mode: str):
|
|||||||
print(sep)
|
print(sep)
|
||||||
|
|
||||||
# Export JSON
|
# Export JSON
|
||||||
report_path = f"/tmp/crash_test_{mode}_{int(time.time())}.json"
|
RESULTS_PATH = os.getenv("CRASH_RESULTS_PATH", "/home/ubuntu/fallout-venice/src/config/crash_results.json")
|
||||||
|
report_path = RESULTS_PATH
|
||||||
try:
|
try:
|
||||||
with open(report_path, "w") as f:
|
with open(report_path, "w") as f:
|
||||||
json.dump({"mode": mode, "results": results,
|
json.dump({"mode": mode, "results": results,
|
||||||
|
|||||||
Reference in New Issue
Block a user