import subprocess print("šŸš€ Running inference.py test...\n") try: result = subprocess.run( ["python", "inference.py"], capture_output=True, text=True, timeout=60 ) print("āœ… STDOUT:\n") print(result.stdout) if result.stderr: print("\nāš ļø STDERR:\n") print(result.stderr) if result.returncode == 0: print("\nšŸŽ‰ TEST PASSED: inference.py ran successfully") else: print(f"\nāŒ TEST FAILED: Exit code {result.returncode}") except Exception as e: print("šŸ’„ Test crashed:", e)