Skip to content

Commit

Permalink
Run only eng tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Jun 25, 2024
1 parent 0b8bd6e commit 2273e0b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ import (
// and execute (without checking for output correctness).
// Files that contain the build constraint "nobuild" are not built.
// Files that contain the build constraint "norun" are not executed.
func TestContentTour(t *testing.T) {
func TestContentEngTour(t *testing.T) {
if _, err := exec.LookPath("go"); err != nil {
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) {
Expand Down

0 comments on commit 2273e0b

Please sign in to comment.