diff options
author | Randy Reddig <[email protected]> | 2024-03-05 09:19:31 -0800 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-03-27 16:01:40 +0100 |
commit | 055950421aa563c0b03e9904ce68785ec597133b (patch) | |
tree | df76a4537fa348c75c74faf22be478a47c86b922 /corpus_test.go | |
parent | cfcc894855b517b2c0788ea1a423c4ed9b3c8a69 (diff) | |
download | tinygo-055950421aa563c0b03e9904ce68785ec597133b.tar.gz tinygo-055950421aa563c0b03e9904ce68785ec597133b.zip |
all: change references of 'wasi' to 'wasip1'; test hygiene
Diffstat (limited to 'corpus_test.go')
-rw-r--r-- | corpus_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/corpus_test.go b/corpus_test.go index 1b27d6f6b..f17a9b9f5 100644 --- a/corpus_test.go +++ b/corpus_test.go @@ -51,6 +51,7 @@ func TestCorpus(t *testing.T) { if *testTarget != "" { target = *testTarget } + isWASI := strings.HasPrefix(target, "wasi") repos, err := loadRepos(*corpus) if err != nil { @@ -69,7 +70,7 @@ func TestCorpus(t *testing.T) { t.Run(name, func(t *testing.T) { t.Parallel() - if target == "wasi" && repo.SkipWASI { + if isWASI && repo.SkipWASI { t.Skip("skip wasi") } if repo.Slow && testing.Short() { @@ -135,7 +136,7 @@ func TestCorpus(t *testing.T) { t.Run(dir.Pkg, func(t *testing.T) { t.Parallel() - if target == "wasi" && dir.SkipWASI { + if isWASI && dir.SkipWASI { t.Skip("skip wasi") } if dir.Slow && testing.Short() { |