Merge pull request #217 from steveeJ/fix-go-tip
build: don't be verbose / test: fix bash variable escaping in sudo command
This commit is contained in:
commit
984ef8117a
2
build
2
build
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -xe
|
set -e
|
||||||
|
|
||||||
ORG_PATH="github.com/containernetworking"
|
ORG_PATH="github.com/containernetworking"
|
||||||
REPO_PATH="${ORG_PATH}/cni"
|
REPO_PATH="${ORG_PATH}/cni"
|
||||||
|
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..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user