refactor!: remove top-level corpus dir for tests
It's confusing to have tests in two different top-level directories when working between different grammars, and most of them use `test/corpus` which is more fitting, so time to go.
This commit is contained in:
parent
4ff33e81bb
commit
60a935139b
2 changed files with 6 additions and 9 deletions
|
|
@ -564,11 +564,8 @@ fn run() -> Result<()> {
|
|||
|
||||
let test_dir = current_dir.join("test");
|
||||
|
||||
// Run the corpus tests. Look for them at two paths: `test/corpus` and `corpus`.
|
||||
let mut test_corpus_dir = test_dir.join("corpus");
|
||||
if !test_corpus_dir.is_dir() {
|
||||
test_corpus_dir = current_dir.join("corpus");
|
||||
}
|
||||
// Run the corpus tests. Look for them in `test/corpus`.
|
||||
let test_corpus_dir = test_dir.join("corpus");
|
||||
if test_corpus_dir.is_dir() {
|
||||
let mut opts = TestOptions {
|
||||
path: test_corpus_dir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue