mirror of
https://github.com/rancher/plugins.git
synced 2025-08-30 12:59:56 +00:00
test: fix bash variable escaping in sudo command
This commit is contained in:
parent
20fa3d35e8
commit
232d7c095d
2
test
2
test
@ -35,7 +35,7 @@ TEST=${split[@]/#/${REPO_PATH}/}
|
||||
|
||||
echo -n "Running tests "
|
||||
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
|
||||
echo "with coverage profile generation..."
|
||||
|
Loading…
Reference in New Issue
Block a user