From fc6085ccf44e408f8b8f846dd33a11c61f3d36eb Mon Sep 17 00:00:00 2001 From: Vishwas Siravara Date: Mon, 18 Sep 2023 19:44:49 -0700 Subject: [PATCH] Fix container filepath to make it platform independent Signed-off-by: Vishwas Siravara --- tests/cp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cp.go b/tests/cp.go index b6914e8..c53376d 100644 --- a/tests/cp.go +++ b/tests/cp.go @@ -20,7 +20,7 @@ import ( func Cp(o *option.Option) { filename := "test-file" content := "test-content" - containerFilepath := filepath.Join("/tmp", filename) + containerFilepath := filepath.ToSlash(filepath.Join("/tmp", filename)) containerResource := fmt.Sprintf("%s:%s", testContainerName, containerFilepath) ginkgo.Describe("copy from container to host and vice versa", func() {