From 74108656881c4088a2188bedeb662480d8f50a5f Mon Sep 17 00:00:00 2001 From: Christian Uhsat Date: Sat, 8 Jun 2024 22:24:49 +0200 Subject: [PATCH] version v0.24.2 --- .github/workflows/go.yml | 2 +- pkg/fmount/dd/dd_test.go | 4 ++++ pkg/fmount/vmdk/vmdk_test.go | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 09ee205..022de36 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install packages + - name: Set up OS run: | sudo apt update -y sudo apt install -y qemu-utils diff --git a/pkg/fmount/dd/dd_test.go b/pkg/fmount/dd/dd_test.go index fbc567d..d973757 100644 --- a/pkg/fmount/dd/dd_test.go +++ b/pkg/fmount/dd/dd_test.go @@ -61,6 +61,10 @@ func TestDD(t *testing.T) { if err != nil { t.Fatal(err) } + + if _, err = os.Stat(mnt); !os.IsNotExist(err) { + t.Fatal("mount point not removed") + } }) } } diff --git a/pkg/fmount/vmdk/vmdk_test.go b/pkg/fmount/vmdk/vmdk_test.go index 26859b3..f2f0fff 100644 --- a/pkg/fmount/vmdk/vmdk_test.go +++ b/pkg/fmount/vmdk/vmdk_test.go @@ -61,6 +61,10 @@ func TestVMDK(t *testing.T) { if err != nil { t.Fatal(err) } + + if _, err = os.Stat(mnt); !os.IsNotExist(err) { + t.Fatal("mount point not removed") + } }) } }