Skip to content

Commit c583c4e

Browse files
committed
fix(e2e): resolve conformance CLI path before cargo tests
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent e85a46c commit c583c4e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎e2e/support/conformance.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ e2e_require_openshell_bin() {
1515
echo "ERROR: openshell CLI is not executable: ${OPENSHELL_BIN}" >&2
1616
return 2
1717
fi
18+
19+
# Cargo runs each test from its package directory, so resolve the candidate
20+
# relative to the caller's working directory before passing it to the tests.
21+
local binary_dir
22+
binary_dir="$(cd "$(dirname "${OPENSHELL_BIN}")" && pwd -P)" || return
23+
export OPENSHELL_BIN="${binary_dir}/$(basename "${OPENSHELL_BIN}")"
1824
}
1925

2026
e2e_run_openshell_conformance() {

0 commit comments

Comments
 (0)