Closed alerque closed 2 years ago
I don't understand how these tests are passing on our test suite. I get different actual output for different versions of Lua: luajit
gives me one this, lua5.3
something else, lua5.4
something else. The test is looking for a specific string and I don't see how we're accounting for that across our test matrix.
This seems to be a cart-before-the-horse issue that packagers just have to cope with. Our test suite is handling it by force removing the Penlight that comes with the busted installation. The Arch Linux packaging doesn't have this option and is trying to reset the Lua package path to find the currently-being-tested Penlight instead. That path wasn't being exported correctly. The test only works when the version of Penlight being used internally by busted is the same version of Penlight as is being tested.
I tried updating the Arch Linux package to 1.13.0 and failed, then tried checking out the repo and running the test suite locally. Both fail the same way. I see it passing in CI with similar dependency versions (Lua etc.) so I'm not sure at this point what gives but opening this to track it.
Relevant output: