diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2019-03-26 16:06:58 +0100 |
---|---|---|
committer | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2019-03-26 16:06:58 +0100 |
commit | a5b1ffcadfa25582fa8364b73524bfff3e2a274b (patch) | |
tree | 45e7a0601bef560913d4b2672560d01eb96a51f3 /actions/recipe_test.go | |
parent | 100044871faa0e1de2f62728c3d5b83e1ce41176 (diff) |
New upstream version 1.0.0+git20190326.5bd4aa9
Diffstat (limited to 'actions/recipe_test.go')
-rw-r--r-- | actions/recipe_test.go | 7 |
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) |