From e87bee62afa5fb4aa782e102252609cafde68c94 Mon Sep 17 00:00:00 2001 From: Raja Boujbel Date: Thu, 9 Nov 2023 16:06:40 +0100 Subject: [PATCH] Revert "testing reftest-fix" This reverts commit 71581fa377d1bfc5b3db46177daa82ad5086c863. --- tests/reftests/run.ml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/reftests/run.ml b/tests/reftests/run.ml index 446176ed438..06ddcb87ca8 100644 --- a/tests/reftests/run.ml +++ b/tests/reftests/run.ml @@ -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