From 085c4ea4d88182e7de91454704427bf59617515b Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 16 Feb 2022 14:24:53 +0100 Subject: [PATCH] logcheck: fix tests on Windows Filename regexp matching is sensitive to the path separator. --- hack/tools/logcheck/testdata/src/doNotAllowKlog/klog_logging | 2 +- hack/tools/logcheck/testdata/src/mixed/structured_logging | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/tools/logcheck/testdata/src/doNotAllowKlog/klog_logging b/hack/tools/logcheck/testdata/src/doNotAllowKlog/klog_logging index fd4e96afc..704e82408 100644 --- a/hack/tools/logcheck/testdata/src/doNotAllowKlog/klog_logging +++ b/hack/tools/logcheck/testdata/src/doNotAllowKlog/klog_logging @@ -1 +1 @@ -klog .*/doNotAllowKlog.go +klog .*doNotAllowKlog.go diff --git a/hack/tools/logcheck/testdata/src/mixed/structured_logging b/hack/tools/logcheck/testdata/src/mixed/structured_logging index 8e3ff3c6c..17bce37e2 100644 --- a/hack/tools/logcheck/testdata/src/mixed/structured_logging +++ b/hack/tools/logcheck/testdata/src/mixed/structured_logging @@ -3,4 +3,4 @@ # # Any file that is matched may only use structured logging calls. -unstructured .*/doNotAllowUnstructuredLogs.go +unstructured .*doNotAllowUnstructuredLogs.go