From 565703d95b80b6b1495970b02e0e3ceb8dc76983 Mon Sep 17 00:00:00 2001 From: phillc <15082+phillc@users.noreply.github.com> Date: Thu, 10 Sep 2020 09:42:23 -0400 Subject: [PATCH] Restore not checking fake exec scripts from 4ffaf92ee3cde6327a77db42203e2f24e271f352 I'm a bit stumped on why this doesn't fail locally, but it was caught by travis --- .travis.yml | 1 + Makefile | 2 +- pkg/mount-manager/fake-safe-mounter.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a43d6ff1..f7be5903 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ sudo: required +dist: xenial services: - docker diff --git a/Makefile b/Makefile index d2344c3f..59b7227b 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ vet: fmt .PHONY: test test: vet - go test -v ./... -cover + go test -v ./... -cover $(TEST_ARGS) .PHONY: build-linux build-linux: diff --git a/pkg/mount-manager/fake-safe-mounter.go b/pkg/mount-manager/fake-safe-mounter.go index caa90615..0e0a4a29 100644 --- a/pkg/mount-manager/fake-safe-mounter.go +++ b/pkg/mount-manager/fake-safe-mounter.go @@ -21,7 +21,7 @@ import ( func NewFakeSafeMounter() *mount.SafeFormatAndMount { fakeMounter := &mount.FakeMounter{MountPoints: []mount.MountPoint{}} - fakeExec := &exectesting.FakeExec{} + fakeExec := &exectesting.FakeExec{DisableScripts: true} return &mount.SafeFormatAndMount{ Interface: fakeMounter, Exec: fakeExec,