Skip to content

Commit 7b2666e

Browse files
committed
Don't be too picky on exact svn error + text
1 parent 8f560cf commit 7b2666e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

features/steps/generic_steps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
git_hash = re.compile(r"(\s?)[a-f0-9]{40}(\s?)")
2424
iso_timestamp = re.compile(r'"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}\+\d{2}:\d{2}')
2525
urn_uuid = re.compile(r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")
26+
svn_error = re.compile(r"svn: E\d{6}: .+")
2627

2728

2829
def remote_server_path(context):
@@ -236,6 +237,7 @@ def step_impl(context):
236237
(git_hash, r"\1[commit hash]\2"),
237238
(timestamp, "[timestamp]"),
238239
(dfetch_title, ""),
240+
(svn_error, "svn: EXXXXXX: <some error text>"),
239241
],
240242
text=context.text,
241243
)
@@ -249,6 +251,7 @@ def step_impl(context):
249251
re.compile(f"file:///{remote_server_path(context)}"),
250252
"some-remote-server",
251253
),
254+
(svn_error, "svn: EXXXXXX: <some error text>"),
252255
],
253256
text=context.cmd_output,
254257
)

0 commit comments

Comments
 (0)