aboutsummaryrefslogtreecommitdiffhomepage
path: root/corpus_test.go
diff options
context:
space:
mode:
authorRandy Reddig <[email protected]>2024-03-05 09:19:31 -0800
committerRon Evans <[email protected]>2024-03-27 16:01:40 +0100
commit055950421aa563c0b03e9904ce68785ec597133b (patch)
treedf76a4537fa348c75c74faf22be478a47c86b922 /corpus_test.go
parentcfcc894855b517b2c0788ea1a423c4ed9b3c8a69 (diff)
downloadtinygo-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.go5
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() {