aboutsummaryrefslogtreecommitdiff
path: root/actions/context_test.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2017-07-18 21:51:15 -0700
committerGitHub <noreply@github.com>2017-07-18 21:51:15 -0700
commit8f4830c7715e5719780f195ce3400b8768c30688 (patch)
tree2db0016cc45fb35ab027a7dd95c8050a05605143 /actions/context_test.go
parent8867856db45abaed8b9e2539ee7c34d99360db56 (diff)
parentcc2de52228d89b2fbc53bc0e710aae699434d6da (diff)
Merge pull request #23 from google/fix
travis CI: Test config file
Diffstat (limited to 'actions/context_test.go')
-rw-r--r--actions/context_test.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/actions/context_test.go b/actions/context_test.go
index a92ef34..4b38a33 100644
--- a/actions/context_test.go
+++ b/actions/context_test.go
@@ -28,6 +28,7 @@ import (
"time"
"github.com/google/fscrypt/util"
+ "github.com/pkg/errors"
)
const testTime = 10 * time.Millisecond
@@ -38,7 +39,7 @@ var testContext *Context
// Makes a context using the testing locations for the filesystem and
// configuration file.
func setupContext() (ctx *Context, err error) {
- mountpoint, err := util.TestPath()
+ mountpoint, err := util.TestRoot()
if err != nil {
return nil, err
}
@@ -83,8 +84,11 @@ func TestMain(m *testing.M) {
var err error
testContext, err = setupContext()
if err != nil {
- fmt.Printf("setupContext() = %v\n", err)
- os.Exit(1)
+ fmt.Println(err)
+ if errors.Cause(err) != util.ErrSkipIntegration {
+ os.Exit(1)
+ }
+ os.Exit(0)
}
returnCode := m.Run()