From db968c672bcd6eeed09a0ad35cac843a5ffe7e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Wed, 31 Jan 2024 19:32:43 +0100 Subject: [PATCH] hack/make.ps1: Fix go list pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The double quotes inside a single quoted string don't need to be escaped. Looks like different Powershell versions are treating this differently and it started failing unexpectedly without any changes on our side. Signed-off-by: Paweł Gronowski (cherry picked from commit ecb217cf69a1ff716180fc8a1d286534850aeaa0) Signed-off-by: Paweł Gronowski --- hack/make.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/make.ps1 b/hack/make.ps1 index 5c9d3a951d..62ecf5deb7 100644 --- a/hack/make.ps1 +++ b/hack/make.ps1 @@ -348,7 +348,7 @@ Function Run-UnitTests() { Function Run-IntegrationTests() { $escRoot = [Regex]::Escape($root) $env:DOCKER_INTEGRATION_DAEMON_DEST = $bundlesDir + "\tmp" - $dirs = go list -test -f '{{- if ne .ForTest `"`" -}}{{- .Dir -}}{{- end -}}' .\integration\... + $dirs = go list -test -f '{{- if ne .ForTest "" -}}{{- .Dir -}}{{- end -}}' .\integration\... ForEach($dir in $dirs) { # Normalize directory name for using in the test results files. $normDir = $dir.Trim()