Run pre and post playbooks
This allows jobs to specify pre and post playbooks. Jobs which inherit
from parents or variants add their pre and post playbooks to their
parents in onion fashion -- the outermost pre playbooks run first and post
playbooks run last.
Change-Id: Ic844dcac77d87481534745a220664d72be2ffa7c
diff --git a/tests/unit/test_model.py b/tests/unit/test_model.py
index ae40416..a71dc28 100644
--- a/tests/unit/test_model.py
+++ b/tests/unit/test_model.py
@@ -94,6 +94,9 @@
layout.addJob(python27diablo)
project_config = configloader.ProjectParser.fromYaml(layout, {
+ '_source_project': project,
+ '_source_branch': 'master',
+ '_source_configrepo': True,
'name': 'project',
'gate': {
'jobs': [
@@ -247,6 +250,9 @@
layout.addJob(python27diablo)
project_config = configloader.ProjectParser.fromYaml(layout, {
+ '_source_project': project,
+ '_source_branch': 'master',
+ '_source_configrepo': True,
'name': 'project',
'gate': {
'jobs': [
@@ -309,6 +315,9 @@
layout.addJob(python27)
project_config = configloader.ProjectParser.fromYaml(layout, {
+ '_source_project': project,
+ '_source_branch': 'master',
+ '_source_configrepo': True,
'name': 'project',
'gate': {
'jobs': [