Skip to content

Commit 0a81443

Browse files
committed
fix: correct binary path resolution in mpe_runner
Fix the project root path calculation in _resolve_mpe_binary(). The function was using parents[1] which only went up one level from tests/utils/mpe_runner.py to tests/, but it needs parents[2] to reach the actual project root where target/mpe is located. This fixes the FileNotFoundError in CI where tests couldn't find the mpe binary. Tested: All 110 integration tests pass locally. Signed-off-by: Yusuf Nathani <yusuf.nathani@sysvine.com>
1 parent b4ba32a commit 0a81443

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/utils/mpe_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88

99
def _resolve_mpe_binary():
10-
project_root = Path(__file__).resolve().parents[1]
10+
# Go up 2 levels: tests/utils/mpe_runner.py -> tests/ -> project_root
11+
project_root = Path(__file__).resolve().parents[2]
1112
local_binary = project_root / "target" / "mpe"
1213

1314
if local_binary.exists():

0 commit comments

Comments
 (0)