Welcome to mirror list, hosted at ThFree Co, Russian Federation.

runtest.sh « test - github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0da596fb66991ab4d6c6b737512d37ff3c346e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

: ${SH:=$(procstat -f $$ | awk '$3 == "text" { print $10 }')}
case "$1" in
bulk*.sh)
	: ${TIMEOUT:=3600}
	;;
esac
: ${TIMEOUT:=90}

[ -t 0 ] && export FORCE_COLORS=1
exec < /dev/null

# Need to trim environment of anything that may taint our top-level port var
# fetching.
while read var; do
	unset ${var}
done <<-EOF
$(env | egrep '^(WITH_|PORT)')
EOF

exec /usr/bin/timeout ${TIMEOUT} ../timestamp ${SH} "$@"