Skip to content

Commit e111488

Browse files
committed
go[tests] disable rust auto-corpus by default
It appears to be too heavy on the github actions workers?
1 parent 47fbbd9 commit e111488

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

go/tests/rust/rust_corpus_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ var defaultCorpusRepos = []corpus.Repo{
6565
// go test -run TestRustAutoCorpus -v -timeout 60m ./tests/rust/
6666
// go test -run TestRustAutoCorpus -v -timeout 60m ./tests/rust/ -args -corpus_cache=~/cache/rust-corpus
6767
func TestRustAutoCorpus(t *testing.T) {
68+
if os.Getenv("AUTO_CORPUS") != "true" {
69+
t.Skip()
70+
}
6871
flag.Parse()
6972
if _, err := exec.LookPath("git"); err != nil {
7073
t.Skip("git not found in PATH")
@@ -122,6 +125,9 @@ func grammarPathForRepo(name string) string {
122125
// go test -run TestRustAutoCorpus2021 -v -timeout 60m ./tests/rust/
123126
// go test -run TestRustAutoCorpus2021 -v -timeout 60m ./tests/rust/ -args -corpus_cache=~/cache/rust-corpus
124127
func TestRustAutoCorpus2021(t *testing.T) {
128+
if os.Getenv("AUTO_CORPUS") != "true" {
129+
t.Skip()
130+
}
125131
flag.Parse()
126132
if _, err := exec.LookPath("git"); err != nil {
127133
t.Skip("git not found in PATH")

0 commit comments

Comments
 (0)