summaryrefslogtreecommitdiff
path: root/test_trove_upgrades.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_trove_upgrades.py')
-rw-r--r--test_trove_upgrades.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/test_trove_upgrades.py b/test_trove_upgrades.py
index 596f000..18ec5d9 100644
--- a/test_trove_upgrades.py
+++ b/test_trove_upgrades.py
@@ -89,12 +89,22 @@ class Deployment(object):
self.system_morph_name = system_morph_name
self.deploy_morph_name = deploy_morph_name
+ loader = morphlib.morphloader.MorphologyLoader()
+ system_morph_file = os.path.join(
+ self.branch.morphs_dir, system_morph_name + '.morph')
+ self.system_morph = loader.load_from_file(system_morph_file)
+
+ self.arch = self.system_morph['arch']
+
def create_config(self):
pass
def run_build(self):
- run_morph(
- ['build', self.system_morph_name], cwd=self.branch.branch_dir)
+ controller = config.DISTBUILD_INITIATORS[self.arch]
+ command = [
+ 'distbuild', '--controller-initiator-address=%s' % controller,
+ self.system_morph_name]
+ run_morph(command, cwd=self.branch.branch_dir)
def run_deploy(self, autostart=False):
autostart_param = \