fix(test_harness): followup to #459, dont use --clean but rather --noplugin (#497)

otherwise its a breaking change, see
https://github.com/nvim-treesitter/nvim-treesitter/pull/4856
This commit is contained in:
Simon Hauser 2023-05-24 13:51:57 +02:00 committed by GitHub
parent 58a496a55e
commit 6aeb98daac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View file

@ -39,5 +39,5 @@ luac.out
*.x86_64
*.hex
build/
doc/tags

View file

@ -238,7 +238,7 @@ Without second argument, `PlenaryBustedDirectory` is also run with a minimal
configuration. Otherwise it is a Lua option table with the following fields:
- `nvim_cmd`: specify the command to launch this neovim instance (defaults to `vim.v.progpath`)
- `init`: specify an init.vim to use for this instance
- `minimal_init`: as for `init`, but also run the neovim instance with `--clean`
- `minimal_init`: as for `init`, but also run the neovim instance with `--noplugin`
- `sequential`: whether to run tests sequentially (default is to run in parallel)
- `keep_going`: if `sequential`, whether to continue on test failure (default true)
- `timeout`: controls the maximum time allotted to each job in parallel or

View file

@ -33,7 +33,7 @@ The second argument is a Lua option table with the following fields:
`init` specify an init.vim to use for this instance, if not given
a minimal configuration is used.
`minimal_init` as for `init`, but also run the neovim instance with
`--clean`.
`--noplugin`.
`sequential` whether to run tests sequentially (default is to run in
parallel).
`keep_going` if `sequential`, whether to continue on test failure (default
@ -41,7 +41,7 @@ The second argument is a Lua option table with the following fields:
`timeout` controls the maximum time allotted to each job in parallel or
sequential operation (defaults to 50,000 milliseconds).
Unless `init` is given, the neovim instance is run with the `--clean`
Unless `init` is given, the neovim instance is run with the `--noplugin`
argument.
The exit code is 0 for success and 1 for fail, so you can use it easily in

View file

@ -91,7 +91,7 @@ function harness.test_directory(directory, opts)
}
if minimal then
table.insert(args, "--clean")
table.insert(args, "--noplugin")
if opts.minimal_init then
table.insert(args, "-u")
table.insert(args, opts.minimal_init)