feat: make CODEX_BINARY configurable from env var

This commit is contained in:
gmega 2025-06-18 20:14:02 -03:00
parent cfdea04de5
commit c43e63db0b
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -4,7 +4,7 @@ common_setup() {
load test_helper/bats-assert/load
export LIB_SRC="${BATS_TEST_DIRNAME}/../src"
export CODEX_BINARY="${BATS_TEST_DIRNAME}/codex/build/codex"
export CODEX_BINARY=${CODEX_BINARY:-"${BATS_TEST_DIRNAME}/codex/build/codex"}
if [ ! -f "$CODEX_BINARY" ]; then
echo "Codex binary not found at $CODEX_BINARY"