#!/bin/bash set -e bundle_test_integration_cli() { TESTFLAGS="$TESTFLAGS -check.v -check.timeout=${TIMEOUT} -test.timeout=360m" go_test_dir ./integration-cli } # subshell so that we can export PATH without breaking other things ( bundle_test_integration_cli ) 2>&1 | tee -a "$DEST/test.log"