#!/bin/bash # Copy STDOUT to FD3. This prevents the XTRACE output to be mixed # with the normal STDOUT used for piping. exec 3>&1 # Redirect XTRACE output to the new FD3 BASH_XTRACEFD="3" # Activate Tracing and exit-on-error set -ex echo "----- start testing -----" echo "USER: ${USER}" DBTYPE="${0##*-}" echo "---- Preparing test files ----" DATAFILE="${AUTOPKGTEST_TMP}/datafile" cat > "${DATAFILE}" <