You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Command '{cmd}' not found in PATH. Please verify entry_points in setup.py or [project.scripts] in pyproject.toml and ensure the package is installed."
54
+
)
55
+
56
+
try:
57
+
subprocess.run(
58
+
[cmd, "--help"],
59
+
capture_output=True,
60
+
text=True,
61
+
check=True,
62
+
timeout=10,
63
+
)
64
+
exceptsubprocess.TimeoutExpired:
65
+
self.fail(f"Command '{cmd} --help' timed out execution.")
66
+
exceptsubprocess.CalledProcessErrorase:
67
+
self.fail(f"Command '{cmd} --help' failed with exit code {e.returncode}. Stderr: {e.stderr.strip()}")
68
+
exceptOSErrorase:
69
+
self.fail(f"Failed to execute command '{cmd}': {e}")
0 commit comments