Fixed stabilize e2e and Jetson manual runs
ci/woodpecker/push/02-build-push Pipeline was canceled
ci/woodpecker/manual/01-test Pipeline failed
ci/woodpecker/manual/02-build-push Pipeline was successful

This commit is contained in:
Roman Meshko
2026-05-08 17:48:42 +03:00
parent f63e33eef2
commit 562ad14b09
3 changed files with 18 additions and 6 deletions
+3 -3
View File
@@ -22,12 +22,12 @@ def test_nft_res_lim_04_log_file_rotation(warm_engine, image_detect, image_small
Path(__file__).resolve().parent.parent / "logs",
Path("/app/Logs"),
]
log_dir = next((p for p in candidates if p.is_dir()), None)
if log_dir is None:
log_dirs = [p for p in candidates if p.is_dir()]
if not log_dirs:
pytest.skip("Log directory not accessible from e2e-runner container")
today = datetime.now().strftime("%Y%m%d")
expected = f"log_inference_{today}.txt"
names = {p.name for p in log_dir.iterdir() if p.is_file()}
names = {p.name for log_dir in log_dirs for p in log_dir.iterdir() if p.is_file()}
if expected not in names:
pat = re.compile(r"^log_inference_\d{8}\.txt$")
assert any(pat.match(n) for n in names), names