Example #1
0
 def setup(self):
     state = self.get_state()
     self.label = re.sub('.py$', '', os.path.basename(state['name']))
     self.browser = Browser("localhost", self.label)
     self.journal_start = re.sub(
         '.*cursor: ', '',
         subprocess.check_output(
             "journalctl --show-cursor -n0 -o cat || true", shell=True))
Example #2
0
 def setUp(self):
     #        state = self.get_state()
     self.label = ("avocado")
     self.browser = Browser("localhost", self.label)
     self.journal_start = re.sub(
         '.*cursor: ', '',
         subprocess.check_output(
             "journalctl --show-cursor -n0 -o cat || true", shell=True))