Skip to content

Commit

Permalink
Fix TravisCI build (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniacslk authored and pmazzini committed Jun 20, 2019
1 parent 7975934 commit b428385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
set -e
echo "" > coverage.txt

# show the network configuration. This can help troubleshooting integration
# tests.
ip a

for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
Expand Down
6 changes: 4 additions & 2 deletions netboot/netconf_integ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import (
"github.com/stretchr/testify/require"
)

// this assumes that eth0 exists and is configurable
var ifname = "eth0"
// Travis-CI uses ens4, and this test assumes that such interface
// exists and is configurable. If you are running this test locally,
// you may need to adjust this value.
var ifname = "ens4"

func TestIfUp(t *testing.T) {
iface, err := IfUp(ifname, 2*time.Second)
Expand Down

0 comments on commit b428385

Please sign in to comment.