test: fix bash variable escaping in sudo command
This commit is contained in:
2
test
2
test
@ -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..."
|
||||||
|
Reference in New Issue
Block a user