Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Steinlechner
pykat
Commits
9ce4cf7f
Commit
9ce4cf7f
authored
Sep 18, 2014
by
Daniel Brown
Browse files
Adding check for lines starting with '**' when parsing finesse stdout/stderr
parent
28736604
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/finesse.py
View file @
9ce4cf7f
...
...
@@ -886,18 +886,16 @@ class kat(object):
if
len
(
line
)
>
0
:
if
line
.
rstrip
().
endswith
(
's'
):
# FIXME: hack to fix bug with 'Global scaling factor' message
if
line
.
rstrip
().
endswith
(
'ts'
):
# do nothing
if
self
.
verbose
:
sys
.
stdout
.
write
(
line
)
else
:
vals
=
line
.
split
(
"-"
)
action
=
vals
[
0
].
strip
()
prc
=
vals
[
1
].
strip
()[:]
if
printerr
==
1
:
sys
.
stdout
.
write
(
"
\r
{0} {1}"
.
format
(
action
,
prc
))
if
line
.
lstrip
().
startswith
(
'**'
):
if
self
.
verbose
:
sys
.
stdout
.
write
(
line
)
elif
line
.
rstrip
().
endswith
(
's'
):
vals
=
line
.
split
(
"-"
)
action
=
vals
[
0
].
strip
()
prc
=
vals
[
1
].
strip
()[:]
if
printerr
==
1
:
sys
.
stdout
.
write
(
"
\r
{0} {1}"
.
format
(
action
,
prc
))
elif
line
.
rstrip
().
endswith
(
'%'
):
vals
=
line
.
split
(
"-"
)
action
=
vals
[
0
].
strip
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment