Skip to content

Commit

Permalink
Revert "testing reftest-fix"
Browse files Browse the repository at this point in the history
This reverts commit 71581fa.
  • Loading branch information
rjbou committed Nov 9, 2023
1 parent dbf93c1 commit e87bee6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/reftests/run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,8 @@ let str_replace_path ?escape whichway filters s =
) in
match by with
| Sed by ->
let r =
Re.replace (Re.compile re_path) s ~f:(fun g ->
escape_regexps by ^ escape_backslashes (whichway (Re.Group.(get g (nb_groups g - 1)))))
in
if OpamStd.String.contains ~sub:"sandbox" s then
OpamConsole.error "---\n%s\n%s"
s
r
;
r
| Grep | GrepV ->
if (by = Grep) = Re.execp (Re.compile re) s then s else "\\c")
s filters
Expand Down

0 comments on commit e87bee6

Please sign in to comment.