From aa790db7f22cfa5e5cf64a0d0b22f7d83b6f6eb2 Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Mon, 3 Nov 2025 07:47:26 -0800 Subject: [PATCH] cleanup: unnecessary script file --- .../custom_output_files/run_and_capture.py | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 examples/custom_output_files/run_and_capture.py diff --git a/examples/custom_output_files/run_and_capture.py b/examples/custom_output_files/run_and_capture.py deleted file mode 100644 index 580ae7d6..00000000 --- a/examples/custom_output_files/run_and_capture.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python3 -"""Run main.py and capture output to test_output.txt""" - -import subprocess -import sys - -# Run main.py and capture output -result = subprocess.run( - [sys.executable, "main.py"], capture_output=True, text=True, timeout=10 -) - -# Write both stdout and stderr to test_output.txt -with open("test_output.txt", "w") as f: - if result.stdout: - f.write(result.stdout) - if result.stderr: - f.write(result.stderr) - -print(f"Output saved to test_output.txt") -print(f"Return code: {result.returncode}")