From 826769a86d91381fb39141db601b753cb8233207 Mon Sep 17 00:00:00 2001 From: Otto Boehrer Date: Wed, 23 Oct 2024 15:41:57 +0200 Subject: [PATCH] tmp file path win --- .../cpi/image/root_image/root_image_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openstack_cpi_golang/cpi/image/root_image/root_image_test.go b/src/openstack_cpi_golang/cpi/image/root_image/root_image_test.go index 778eed7a..a54fd7cf 100644 --- a/src/openstack_cpi_golang/cpi/image/root_image/root_image_test.go +++ b/src/openstack_cpi_golang/cpi/image/root_image/root_image_test.go @@ -23,7 +23,7 @@ var _ = Describe("RootImage", func() { rootImagePath, err := NewRootImage().Get("testdata/image", targetDirPath) Expect(err).ToNot(HaveOccurred()) - Expect(rootImagePath).To(MatchRegexp(".*/unpacked-image-[0-9]+/root.img")) + Expect(rootImagePath).To(MatchRegexp(".*/unpacked-image-[0-9]+[\\/]root.img")) }) It("fails if the root.img cannot be found", func() {