From d0cc5dab2ac73a2556b6d598401591ae54b2b329 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 25 Jun 2024 17:10:05 +0300 Subject: [PATCH] Run only eng tests --- content_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content_test.go b/content_test.go index 719c6dae..87185b00 100644 --- a/content_test.go +++ b/content_test.go @@ -24,11 +24,11 @@ func TestContentTour(t *testing.T) { t.Skipf("skipping because 'go' executable not available: %v", err) } - err := filepath.Walk(filepath.Join("_content", "tour"), func(path string, fi os.FileInfo, err error) error { - if filepath.Ext(path) != ".go" { - return nil + err := filepath.Walk(filepath.Join("_content", "tour", "eng"), func(path string, fi os.FileInfo, err error) error { + if err != nil { + return err } - if filepath.Base(path) == "content_test.go" { + if filepath.Ext(path) != ".go" { return nil } t.Run(path, func(t *testing.T) {