sglang tp_dp_matrix: export DATASET_PATH for bash -c subshells
export -f only exports the function definition, not the variables it references. DATASET_PATH was empty inside timeout bash -c subshells, causing docker run -v ::ro invalid spec even after the dynamic vol_args fix. Add explicit export after sourcing config.env.
This commit is contained in:
parent
605b976fb8
commit
58a3616872
@ -12,6 +12,9 @@ source "${SCRIPT_DIR}/../../scripts/common/platform.sh"
|
||||
# shellcheck source=/dev/null
|
||||
source "${SCRIPT_DIR}/config.env"
|
||||
|
||||
# Export variables used inside functions that are called via bash -c subshells.
|
||||
export DATASET_PATH
|
||||
|
||||
RUN_ID="${RUN_ID:-$(date '+%Y%m%d-%H%M%S')}"
|
||||
RESULT_BASE="${SCRIPT_DIR}/results"
|
||||
MATRIX_FILE="${MATRIX_FILE:-${SCRIPT_DIR}/matrix.json}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user