New upstream version 2016.14
This commit is contained in:
commit
90f43fba94
100 files changed
+1821
-1339
No files matched your search
+16
-5
@@ -11,13 +11,24 @@ bn=$(basename $1)
|
||||
tempdir=$(mktemp -d /var/tmp/tap-test.XXXXXX)
|
||||
touch ${tempdir}/.testtmp
|
||||
function cleanup () {
|
||||
if test -n "${TEST_SKIP_CLEANUP:-}"; then
|
||||
echo "Skipping cleanup of ${tempdir}"
|
||||
else if test -f ${tempdir}/.testtmp; then
|
||||
if test -f ${tempdir}/.testtmp; then
|
||||
rm "${tempdir}" -rf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
trap cleanup EXIT
|
||||
function skip_cleanup() {
|
||||
echo "Skipping cleanup of ${tempdir}"
|
||||
}
|
||||
cd ${tempdir}
|
||||
${srcd}/${bn} -k --tap
|
||||
rc=$?
|
||||
case "${TEST_SKIP_CLEANUP:-}" in
|
||||
no|"") cleanup ;;
|
||||
err)
|
||||
if test $rc != 0; then
|
||||
skip_cleanup
|
||||
else
|
||||
cleanup
|
||||
fi ;;
|
||||
*) skip_cleanup ;;
|
||||
esac
|
||||
exit $rc
|
||||
Reference in new issue
Block a user