aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-28 18:14:32 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-28 18:14:32 +0200
commit92d2849f76c3395f9a51ab79a5726e1df5348ba8 (patch)
treea6edcfde2679f0377c6d34e16f292ffd5a2391a7 /rumba/prototypes
parent28556357ef43a549d18bf9a38d3c81b16f0ccbe6 (diff)
downloadrumba-92d2849f76c3395f9a51ab79a5726e1df5348ba8.tar.gz
rumba-92d2849f76c3395f9a51ab79a5726e1df5348ba8.zip
Fix pylint warnings and errors
This fixes several warnings and errors as reported by pylint.
Diffstat (limited to 'rumba/prototypes')
-rw-r--r--rumba/prototypes/irati.py6
-rw-r--r--rumba/prototypes/ouroboros.py8
-rw-r--r--rumba/prototypes/rlite.py8
3 files changed, 12 insertions, 10 deletions
diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py
index 90d0861..1babd57 100644
--- a/rumba/prototypes/irati.py
+++ b/rumba/prototypes/irati.py
@@ -23,7 +23,7 @@ import rumba.model as mod
# An experiment over the IRATI implementation
class Experiment(mod.Experiment):
- def __init__(self, testbed, nodes = None):
+ def __init__(self, testbed, nodes=None):
mod.Experiment.__init__(self, testbed, nodes)
def setup(self):
@@ -31,7 +31,7 @@ class Experiment(mod.Experiment):
cmds.append("sudo apt-get update")
cmds.append("sudo apt-get install g++ gcc "
- "protobuf-compiler libprotobuf-dev git --yes")
+ "protobuf-compiler libprotobuf-dev git --yes")
cmds.append("sudo rm -rf ~/irati")
cmds.append("cd && git clone https://github.com/IRATI/stack irati")
cmds.append("cd ~/irati && sudo ./install-from-scratch")
@@ -39,7 +39,7 @@ class Experiment(mod.Experiment):
for node in self.nodes:
ssh.execute_commands(self.testbed, node.full_name,
- cmds, time_out = None)
+ cmds, time_out=None)
def run(self):
print("[IRATI experiment] start")
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index 4359f19..57358cf 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -23,7 +23,7 @@ import rumba.model as mod
# An experiment over the Ouroboros implementation
class Experiment(mod.Experiment):
- def __init__(self, testbed, nodes = None):
+ def __init__(self, testbed, nodes=None):
mod.Experiment.__init__(self, testbed, nodes)
def setup_ouroboros(self):
@@ -36,7 +36,8 @@ class Experiment(mod.Experiment):
cmds.append("sudo nohup irmd > /dev/null &")
for node in self.nodes:
- ssh.execute_commands(self.testbed, node.full_name, cmds, time_out = None)
+ ssh.execute_commands(self.testbed, node.full_name,
+ cmds, time_out=None)
return
def bind_names(self):
@@ -45,7 +46,8 @@ class Experiment(mod.Experiment):
for name, ap in node.bindings.items():
cmds.append("irm b ap " + ap + " n " + name)
- ssh.execute_commands(self.testbed, node.full_name, cmds, time_out = None)
+ ssh.execute_commands(self.testbed, node.full_name,
+ cmds, time_out=None)
def run(self):
print("[Ouroboros experiment] start")
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py
index 5fa2c37..b175e92 100644
--- a/rumba/prototypes/rlite.py
+++ b/rumba/prototypes/rlite.py
@@ -23,7 +23,7 @@ import rumba.model as mod
# An experiment over the RLITE implementation
class Experiment(mod.Experiment):
- def __init__(self, testbed, nodes = None):
+ def __init__(self, testbed, nodes=None):
mod.Experiment.__init__(self, testbed, nodes)
def setup(self):
@@ -31,8 +31,8 @@ class Experiment(mod.Experiment):
cmds.append("sudo apt-get update")
cmds.append("sudo apt-get install g++ gcc cmake "
- "linux-headers-$(uname -r) "
- "protobuf-compiler libprotobuf-dev git --yes")
+ "linux-headers-$(uname -r) "
+ "protobuf-compiler libprotobuf-dev git --yes")
cmds.append("sudo rm -rf ~/rlite")
cmds.append("cd ~; git clone https://github.com/vmaffione/rlite")
cmds.append("cd ~/rlite && ./configure && make && sudo make install")
@@ -40,7 +40,7 @@ class Experiment(mod.Experiment):
for node in self.nodes:
ssh.execute_commands(self.testbed, node.full_name,
- cmds, time_out = None)
+ cmds, time_out=None)
def run(self):
print("[RLITE experiment] start")