summaryrefslogtreecommitdiffhomepage
path: root/.travis/tests.sh
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2019-04-15 09:33:08 +0100
committerGitHub <noreply@github.com>2019-04-15 09:33:08 +0100
commitac4db3f5fb61a34cf65d81fb4efe6e3d2627b461 (patch)
treee85597d906594cb21b91c7f4eceeffe37c8cd16d /.travis/tests.sh
parenteea1149bcb0a49e5203db64137de7d48ce78c18b (diff)
Replace vishvananda/netlink with jsimonetti/rtnetlink (#271)
Fixes #257 And saves ~100kb. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to '.travis/tests.sh')
-rwxr-xr-x.travis/tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis/tests.sh b/.travis/tests.sh
index 1503547..a3389fe 100755
--- a/.travis/tests.sh
+++ b/.travis/tests.sh
@@ -13,13 +13,13 @@ for d in $(go list ./... | grep -v vendor); do
rm profile.out
fi
# integration tests
- go test -c -tags=integration -race -coverprofile=profile.out -covermode=atomic $d
+ go test -c -cover -tags=integration -race -covermode=atomic $d
testbin="./$(basename $d).test"
# only run it if it was built - i.e. if there are integ tests
- test -x "${testbin}" && sudo "./${testbin}"
+ test -x "${testbin}" && sudo "./${testbin}" -test.coverprofile=profile.out
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
- rm profile.out
+ rm -f profile.out
fi
done