diff options
-rw-r--r-- | rumba/prototypes/ouroboros.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py index c588405..a3c6c6c 100644 --- a/rumba/prototypes/ouroboros.py +++ b/rumba/prototypes/ouroboros.py @@ -69,7 +69,8 @@ class Experiment(mod.Experiment): def setup_ouroboros(self): if isinstance(self.testbed, fake.Testbed): - self.irmd = subprocess.Popen(["irmd"]) + subprocess.check_call('sudo -v'.split()) + self.irmd = subprocess.Popen(["sudo", "irmd"]) logger.info("Started IRMd, sleeping 2 seconds...") time.sleep(2) else: @@ -230,4 +231,5 @@ class Experiment(mod.Experiment): def _terminate_prototype(self): if isinstance(self.testbed, fake.Testbed): - self.irmd.terminate() + logger.info("Killing IRMd...") + subprocess.check_call('sudo killall -15 irmd'.split()) |