From e61173ed0f5bcd71d0bb310a11f14682590e548d Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Mon, 6 Jan 2025 18:06:30 +0000 Subject: [PATCH] Again. --- vfs/tests/mptest/mptest_test.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/vfs/tests/mptest/mptest_test.go b/vfs/tests/mptest/mptest_test.go index c6108781..ad27ab62 100644 --- a/vfs/tests/mptest/mptest_test.go +++ b/vfs/tests/mptest/mptest_test.go @@ -31,8 +31,6 @@ import ( //go:embed testdata/* var scripts embed.FS -const qemuCI = runtime.GOARCH != "386" && runtime.GOARCH != "amd64" && runtime.GOARCH != "arm64" - var ( rt wazero.Runtime module wazero.CompiledModule @@ -155,8 +153,8 @@ func Test_crash01(t *testing.T) { } func Test_multiwrite01(t *testing.T) { - if os.Getenv("CI") != "" && qemuCI { - t.Skip("skipping in CI") + if testing.Short() && os.Getenv("CI") != "" { + t.Skip("skipping in slow CI") } if !vfs.SupportsFileLocking { t.Skip("skipping without locks") @@ -185,8 +183,8 @@ func Test_config01_memory(t *testing.T) { } func Test_multiwrite01_memory(t *testing.T) { - if os.Getenv("CI") != "" && qemuCI { - t.Skip("skipping in CI") + if testing.Short() && os.Getenv("CI") != "" { + t.Skip("skipping in slow CI") } memdb.Create("test.db", nil) @@ -220,8 +218,8 @@ func Test_crash01_wal(t *testing.T) { } func Test_multiwrite01_wal(t *testing.T) { - if os.Getenv("CI") != "" && qemuCI { - t.Skip("skipping in CI") + if testing.Short() && os.Getenv("CI") != "" { + t.Skip("skipping in slow CI") } if !vfs.SupportsSharedMemory { t.Skip("skipping without shared memory")