Skip to content

Commit 6aeb98d

Browse files
authored
fix(test_harness): followup to #459, dont use --clean but rather --noplugin (#497)
otherwise its a breaking change, see nvim-treesitter/nvim-treesitter#4856
1 parent 58a496a commit 6aeb98d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ luac.out
3939
*.x86_64
4040
*.hex
4141

42-
4342
build/
43+
doc/tags

README.md

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

doc/plenary-test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ The second argument is a Lua option table with the following fields:
3333
`init` specify an init.vim to use for this instance, if not given
3434
a minimal configuration is used.
3535
`minimal_init` as for `init`, but also run the neovim instance with
36-
`--clean`.
36+
`--noplugin`.
3737
`sequential` whether to run tests sequentially (default is to run in
3838
parallel).
3939
`keep_going` if `sequential`, whether to continue on test failure (default
4040
true).
4141
`timeout` controls the maximum time allotted to each job in parallel or
4242
sequential operation (defaults to 50,000 milliseconds).
4343

44-
Unless `init` is given, the neovim instance is run with the `--clean`
44+
Unless `init` is given, the neovim instance is run with the `--noplugin`
4545
argument.
4646

4747
The exit code is 0 for success and 1 for fail, so you can use it easily in

lua/plenary/test_harness.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function harness.test_directory(directory, opts)
9191
}
9292

9393
if minimal then
94-
table.insert(args, "--clean")
94+
table.insert(args, "--noplugin")
9595
if opts.minimal_init then
9696
table.insert(args, "-u")
9797
table.insert(args, opts.minimal_init)

0 commit comments

Comments
 (0)