@misterhuydo/sentinel 1.4.48 → 1.4.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -124,7 +124,11 @@ def _run_tests(repo: RepoConfig, local_path: str) -> bool:
|
|
|
124
124
|
return True
|
|
125
125
|
|
|
126
126
|
logger.info("Running tests for %s: %s", repo.repo_name, " ".join(cmd))
|
|
127
|
-
|
|
127
|
+
try:
|
|
128
|
+
r = subprocess.run(cmd, cwd=local_path, capture_output=True, text=True, timeout=300)
|
|
129
|
+
except FileNotFoundError:
|
|
130
|
+
logger.warning("Test runner '%s' not found on this server — skipping tests for %s", cmd[0], repo.repo_name)
|
|
131
|
+
return True
|
|
128
132
|
if r.returncode != 0:
|
|
129
133
|
logger.error("Tests failed:\n%s", r.stdout[-2000:] + r.stderr[-1000:])
|
|
130
134
|
return False
|