aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes/irati.py
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-02-12 18:36:07 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-02-13 09:17:47 +0100
commitf075b0b6f69f1bae3735eb8560b8f571c708aafd (patch)
tree22742b579ab98103d58aeed85a4135a1c41979d7 /rumba/prototypes/irati.py
parent25bd117a9ce2bb4365743848d3c8742e3deb8afa (diff)
downloadrumba-f075b0b6f69f1bae3735eb8560b8f571c708aafd.tar.gz
rumba-f075b0b6f69f1bae3735eb8560b8f571c708aafd.zip
prototypes: Add option to choose git repo and branch
This adds two extra parameters to the Experiment class, so that users can specify their custom repositories and branches for testing new features.
Diffstat (limited to 'rumba/prototypes/irati.py')
-rw-r--r--rumba/prototypes/irati.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py
index e8da727..50b8d89 100644
--- a/rumba/prototypes/irati.py
+++ b/rumba/prototypes/irati.py
@@ -59,8 +59,10 @@ class Experiment(mod.Experiment):
def fake_sudo(s):
return s
- def __init__(self, testbed, nodes=None, installpath=None, varpath=None):
- mod.Experiment.__init__(self, testbed, nodes)
+ def __init__(self, testbed, nodes=None,
+ git_repo='https://github.com/IRATI/stack',
+ git_branch='arcfire', installpath=None, varpath=None):
+ mod.Experiment.__init__(self, testbed, nodes, git_repo, git_branch)
if installpath is None:
installpath = '/usr'
if varpath is None:
@@ -94,7 +96,7 @@ class Experiment(mod.Experiment):
"libprotobuf-dev", "git", "pkg-config", "libssl-dev"]
cmds = [self.sudo("rm -rf ~/stack"),
- "cd ~; git clone -b arcfire https://github.com/IRATI/stack",
+ "cd ~; git clone -b " + self.git_branch + " " + self.git_repo,
"cd ~/stack && "
+ self.sudo("./configure && ") + self.sudo("make install")]
names = []