#!/usr/bin/env bash
set -eu -o pipefail

CONCOURSE_ROOT="$(pwd)"

chown -R bosh "${CONCOURSE_ROOT}"
cd "${CONCOURSE_ROOT}/bosh-agent"

su bosh -c "env PATH=~bosh/go/bin:$PATH GOPATH=$GOPATH bin/test-unit"

#!/usr/bin/env bash
set -eu -o pipefail

CONCOURSE_ROOT="$(pwd)"

chown -R bosh "${CONCOURSE_ROOT}"
# Concourse explicitly changes ownership of the home directory to root, which prevents
# creating go cache directories under there.
chown bosh /home/bosh

cd "${CONCOURSE_ROOT}/bosh-agent"

su bosh -c "env PATH=~bosh/go/bin:$PATH bin/test-unit"

Remove unset GOPATH and fix home dir ownership
Remove unset GOPATH and fix home dir ownership

Signed-off-by: Brian Upton <633483f7295e665b4a23d10cfc31c2458b36dfcc@vmware.com>
