github.com/stffabi/git-lfs@v2.3.5-0.20180214015214-8eeaa8d88902+incompatible/script/integration (about) 1 #!/usr/bin/env bash 2 3 . "test/testenv.sh" 4 set -e 5 6 SHUTDOWN_LFS=no 7 SHOW_LOGS=yes 8 9 atexit() { 10 res=${1:-$?} 11 SHUTDOWN_LFS=yes 12 if [ "$res" = "0" ]; then 13 SHOW_LOGS=no 14 fi 15 16 if [ "$SHOW_LOGS" = "yes" ] && [ "$VERBOSE_LOGS" = "1" ]; then 17 if [ -s "$REMOTEDIR/gitserver.log" ]; then 18 echo "" 19 echo "gitserver.log:" 20 cat "$REMOTEDIR/gitserver.log" 21 fi 22 23 echo "" 24 echo "env:" 25 env 26 fi 27 28 shutdown 29 exit $res 30 } 31 32 trap "atexit" EXIT 33 34 if [ -s "$LFS_URL_FILE" ]; then 35 SHOW_LOGS=no 36 echo "$LFS_URL_FILE still exists!" 37 echo "Confirm other tests are done, and run:" 38 echo " $ curl $(cat "$LFS_URL_FILE")/shutdown" 39 exit 1 40 fi 41 42 setup 43 44 GO15VENDOREXPERIMENT=1 GIT_LFS_TEST_MAXPROCS=$GIT_LFS_TEST_MAXPROCS GIT_LFS_TEST_DIR="$GIT_LFS_TEST_DIR" SHUTDOWN_LFS="no" go run script/*.go -cmd integration "$@"