From c617e2724253288633c9e8a187ac564d64913f3d Mon Sep 17 00:00:00 2001 From: Bartosz Fenski Date: Fri, 28 Jun 2024 07:26:17 +0200 Subject: [PATCH] specify path --- pkg/plugin/mount_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugin/mount_test.go b/pkg/plugin/mount_test.go index f2669c6..c62a6f6 100644 --- a/pkg/plugin/mount_test.go +++ b/pkg/plugin/mount_test.go @@ -23,7 +23,7 @@ func TestMountPVC(t *testing.T) { localMountPoint := "/home/runner/work/pv-mounter/pv-mounter/foo" // Run the mount command using the tool - mountCmd := fmt.Sprintf("./pv-mounter mount %s %s %s", namespace, pvcName, localMountPoint) + mountCmd := fmt.Sprintf("/home/runner/work/pv-mounter/pv-mounter/pv-mounter mount %s %s %s", namespace, pvcName, localMountPoint) if err := runCommand(mountCmd); err != nil { t.Fatalf("Failed to mount PVC: %v", err) } @@ -46,7 +46,7 @@ func TestMountPVC(t *testing.T) { } // Run the unmount command using the tool - unmountCmd := fmt.Sprintf("./pv-mounter clean %s", localMountPoint) + unmountCmd := fmt.Sprintf("/home/runner/work/pv-mounter/pv-mounter/pv-mounter clean %s", localMountPoint) if err := runCommand(unmountCmd); err != nil { t.Fatalf("Failed to unmount the PVC: %v", err) }