test: fix bash variable escaping in sudo command

This commit is contained in:
Stefan Junker
2016-05-20 11:33:23 +02:00
parent 20fa3d35e8
commit 232d7c095d

2
test
View File

@ -35,7 +35,7 @@ TEST=${split[@]/#/${REPO_PATH}/}
echo -n "Running tests " echo -n "Running tests "
function testrun { function testrun {
sudo -E bash -c "umask 0; PATH=\$GOBIN:\$GOROOT/bin:\$PATH go test -covermode set $@" sudo -E bash -c "umask 0; PATH=$GOROOT/bin:$GOBIN:$PATH go test -covermode set $@"
} }
if [ ! -z "${COVERALLS}" ]; then if [ ! -z "${COVERALLS}" ]; then
echo "with coverage profile generation..." echo "with coverage profile generation..."