Commit 9ce4cf7f authored by Daniel Brown's avatar Daniel Brown
Browse files

Adding check for lines starting with '**' when parsing finesse stdout/stderr

parent 28736604
...@@ -886,18 +886,16 @@ class kat(object): ...@@ -886,18 +886,16 @@ class kat(object):
if len(line) > 0: if len(line) > 0:
if line.rstrip().endswith('s'): if line.lstrip().startswith('**'):
# FIXME: hack to fix bug with 'Global scaling factor' message if self.verbose: sys.stdout.write(line)
if line.rstrip().endswith('ts'): elif line.rstrip().endswith('s'):
# do nothing vals = line.split("-")
if self.verbose: sys.stdout.write(line) action = vals[0].strip()
else: prc = vals[1].strip()[:]
vals = line.split("-")
action = vals[0].strip() if printerr == 1:
prc = vals[1].strip()[:] sys.stdout.write("\r{0} {1}".format(action, prc))
if printerr == 1:
sys.stdout.write("\r{0} {1}".format(action, prc))
elif line.rstrip().endswith('%'): elif line.rstrip().endswith('%'):
vals = line.split("-") vals = line.split("-")
action = vals[0].strip() action = vals[0].strip()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment