File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6767func 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
124127func 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" )
You can’t perform that action at this time.
0 commit comments