Files
sausage/userland/brush/source/e2e/blesh/entrypoint.sh
T
2026-11-11 22:04:16 +00:00

16 lines
714 B
Bash
Executable File

#!/bin/bash
# Contract: $SHELL_UNDER_TEST names the shell binary; results go to /results
# (junit XML + full log); exit status = test status.
set -uo pipefail
source /e2e/lib/run_pytest.sh
# ble.sh --test runs under whatever shell invokes it, so no PATH shim is needed.
export BLESH_TEST_SHELL="${SHELL_UNDER_TEST:-bash}"
# Arguments select test sections rather than pytest node ids, so they do not go to pytest.
export BLESH_TEST_FILES=
(($# == 0)) || printf -v BLESH_TEST_FILES '%s\n' "$@"
mkdir -p /results/progress
# shellcheck disable=SC2174 # /results already exists; only run/ needs mode 700.
mkdir -p -m 700 /results/run
export XDG_RUNTIME_DIR=/results/run RUST_BACKTRACE=1
e2e_run_pytest blesh --tb=short