Skip to content

Commit

Permalink
use bosh user in unit tests
Browse files Browse the repository at this point in the history
We have tests which rely on permissions checks which are ignored when
root.

Co-authored-by: Christopher Brown <[email protected]>
  • Loading branch information
luan and Christopher Brown committed Nov 27, 2018
1 parent 7420a05 commit 822bb2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/tasks/test-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ set -e

export PATH=/usr/local/ruby/bin:/usr/local/go/bin:$PATH
export GOPATH=$(pwd)/gopath
chown -R bosh .
cd gopath/src/github.com/cloudfoundry/bosh-agent
bin/test-unit
su bosh -c "env PATH=$PATH GOPATH=$GOPATH bin/test-unit"

0 comments on commit 822bb2f

Please sign in to comment.