Skip to content

Commit 0fd7339

Browse files
committed
Move log cleansing to central place
1 parent dc4d218 commit 0fd7339

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

features/steps/generic_steps.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ def call_command(context: Context, args: list[str], path: Optional[str] = ".") -
4141
context.cmd_returncode = 0
4242
except DfetchFatalException:
4343
context.cmd_returncode = 1
44-
# Remove the color code + title
45-
context.cmd_output = dfetch_title.sub(
46-
"", ansi_escape.sub("", context.captured.output[length_at_start:].strip("\n"))
47-
)
44+
context.cmd_output = context.captured.output[length_at_start:].strip("\n")
4845

4946

5047
def check_file(path, content):
@@ -166,7 +163,7 @@ def check_output(context, line_count=None):
166163
patterns=[
167164
(git_hash, r"\1[commit-hash]\2"),
168165
(timestamp, "[timestamp]"),
169-
(dfetch_title, ""),
166+
(ansi_escape, ""),
170167
(svn_error, "svn: EXXXXXX: <some error text>"),
171168
],
172169
text=context.text,

0 commit comments

Comments
 (0)