Runtime_path contains packer when running tests on local build

Hi all,

I’m trying to set up a local neovim build to hopefully contribute, and I just tried to run all the tests to make sure it’s all working, but the runtime_path tests fail. The output for the test API nvim_list_runtime_paths returns nothing with empty &runtimepath shows:

Passed in:
(table: 0x7ff779f46d58) {
 *[1] = '/usr/share/nvim/site/pack/packer/start/packer.nvim' }
Expected:
(table: 0x7ff779f466c0) { }

So it seems like it’s including my installation of packer. Is there a way to separate the runtime_paths so that the tests can pass, or will this always be a problem with a system-wide installation of packer?

You shouldn’t have plugins in system paths, period.

To run Neovim with “factory defaults” (ignoring user directories), use nvim --clean.

Ah, I see, thank you for the help!