summaryrefslogtreecommitdiff
path: root/actions/recipe_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'actions/recipe_test.go')
-rw-r--r--actions/recipe_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/actions/recipe_test.go b/actions/recipe_test.go
index 972bf61..de9d6ea 100644
--- a/actions/recipe_test.go
+++ b/actions/recipe_test.go
@@ -231,16 +231,11 @@ actions:
var recipeIncluded = subRecipe {
"included.yaml",
`
-{{- $included_recipe := or .included_recipe "false"}}
architecture: amd64
actions:
- action: run
command: ok.sh
- {{- if ne $included_recipe "true" }}
- - action: recipe
- recipe: armhf.yaml
- {{- end }}
`,
}
@@ -314,7 +309,7 @@ actions:
}
func runTestWithSubRecipes(t *testing.T, test testSubRecipe, templateVars ...map[string]string) actions.Recipe {
- var context debos.DebosContext
+ context := debos.DebosContext { &debos.CommonContext{}, "", "" }
dir, err := ioutil.TempDir("", "go-debos")
assert.Empty(t, err)
defer os.RemoveAll(dir)