Skip to content

Commit cbacf21

Browse files
committed
Update spin-erofs-snapshotter path in containerd test setup
1 parent 4c3bb08 commit cbacf21

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

integration/containerd_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@ func setupContainerdClient(t *testing.T, cfg testConfig) *containerd.Client {
224224

225225
// Try to get the spin-erofs-snapshotter binary version
226226
if cfg.Snapshotter == "spin-erofs" {
227-
if out, err := exec.Command("spin-erofs-snapshotter", "--version").CombinedOutput(); err == nil {
227+
snapshotterBin := "/usr/share/spin-stack/bin/spin-erofs-snapshotter"
228+
if out, err := exec.Command(snapshotterBin, "--version").CombinedOutput(); err == nil {
228229
t.Logf("spin-erofs-snapshotter version: %s", strings.TrimSpace(string(out)))
229230
} else {
230-
t.Logf("spin-erofs-snapshotter --version: %v", err)
231+
t.Logf("%s --version: %v", snapshotterBin, err)
231232
}
232233
}
233234

0 commit comments

Comments
 (0)