diff --git a/daemon/hooks/hooks_test.go b/daemon/hooks/hooks_test.go index d498e08..5e23d4d 100644 --- a/daemon/hooks/hooks_test.go +++ b/daemon/hooks/hooks_test.go @@ -161,7 +161,7 @@ jobs: ExpectedEdge: hooks.Pre, ExpectStatus: hooks.StepErr, OutputTest: containsTest(fmt.Sprintf("TEST ERROR pre_testing %s@%s", testFSName, testSnapshotName)), - ErrorTest: regexpTest("^command hook invocation.*exit status 1$"), + ErrorTest: regexpTest("^command hook failed.*exit status 1$"), }, expectStep{ExpectedEdge: hooks.Callback, ExpectStatus: hooks.StepOk}, expectStep{ @@ -185,7 +185,7 @@ jobs: ExpectedEdge: hooks.Pre, ExpectStatus: hooks.StepErr, OutputTest: containsTest(fmt.Sprintf("TEST ERROR pre_testing %s@%s", testFSName, testSnapshotName)), - ErrorTest: regexpTest("^command hook invocation.*exit status 1$"), + ErrorTest: regexpTest("^command hook failed.*exit status 1$"), }, expectStep{ ExpectedEdge: hooks.Pre, @@ -234,7 +234,7 @@ jobs: ExpectedEdge: hooks.Post, ExpectStatus: hooks.StepErr, OutputTest: containsTest(fmt.Sprintf("TEST ERROR post_testing %s@%s", testFSName, testSnapshotName)), - ErrorTest: regexpTest("^command hook invocation.*exit status 1$"), + ErrorTest: regexpTest("^command hook failed.*exit status 1$"), }, }, }, @@ -267,7 +267,7 @@ jobs: ExpectedEdge: hooks.Pre, ExpectStatus: hooks.StepErr, OutputTest: containsTest(fmt.Sprintf("TEST ERROR pre_testing %s@%s", testFSName, testSnapshotName)), - ErrorTest: regexpTest("^command hook invocation.*exit status 1$"), + ErrorTest: regexpTest("^command hook failed.*exit status 1$"), }, expectStep{ExpectedEdge: hooks.Callback, ExpectStatus: hooks.StepOk}, expectStep{ @@ -295,7 +295,7 @@ jobs: ExpectedEdge: hooks.Pre, ExpectStatus: hooks.StepErr, OutputTest: containsTest(fmt.Sprintf("TEST ERROR pre_testing %s@%s", testFSName, testSnapshotName)), - ErrorTest: regexpTest("^command hook invocation.*exit status 1$"), + ErrorTest: regexpTest("^command hook failed.*exit status 1$"), }, expectStep{ExpectedEdge: hooks.Callback, ExpectStatus: hooks.StepOk}, expectStep{