aboutsummaryrefslogtreecommitdiff
blob: b9a631bca7c60029d5f4a1b51955d0caa0166e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# only exported things work in test scripts

export abs_top_srcdir abs_top_builddir abs_srcdir abs_builddir
export AWK="@AWK@"

if ! ${at_clean} ; then
	export SB_UID=$(./get-user)
	export SB_GID=$(./get-group)
fi

export at_xfail

# portage likes to do `addpredict /` ... we dont need/want
# that garbage messing up our env
export SANDBOX_PREDICT=${SANDBOX_PREDICT%:/}

if [ "${AUTOTEST_PATH}" = "tests" ] ; then
	AUTOTEST_PATH="src:tests"
fi

export SANDBOX_VERBOSE=0

# If the terminal has this flag set, the tests get all messed up.
stty -tostop 2>/dev/null || :

# This script must finish with ($? == 0) else the autotest runner gets upset.
: