aboutsummaryrefslogtreecommitdiff
blob: 91b41b233f02557e42faa66be28bf85b4d88b90d (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
28
# only exported things work in test scripts

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

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.
: