[Bug]: fail on running tests
Closed this issue · 2 comments
souz9 commented
Describe the bug
I'm running the tests as it's described in the wiki. Got an error.
Steps to Reproduce
export LUAPOWER_PLATFORM=linux64
export LUA_PATH="$(pwd)/tests_framework/lua/?.lua;$(pwd)/tests_framework/lua/?/init.lua;$(pwd)/luapower/?.lua;$(pwd)/luapower/?/init.lua;$(pwd)/utils/?.lua;$(pwd)/utils/?/init.lua"
export LUA_CPATH="$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/lib?.dylib;$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/clib/?.so;"
export LUA_BIN="$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/luajit-bin"
./tests_framework/lua/bin/busted.$LUAPOWER_PLATFORM.cmd tests/.
ARG[1] tests/.
/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/luajit-bin: ...erok/soldr-modules/tests_framework/lua/busted/runner.lua:25: module 'busted.modules.luacov' not found:
no field package.preload['busted.modules.luacov']
no file '/home/souz9/cyberok/soldr-modules/tests_framework/lua/busted/modules/luacov.lua'
no file '/home/souz9/cyberok/soldr-modules/tests_framework/lua/busted/modules/luacov/init.lua'
no file '/home/souz9/cyberok/soldr-modules/luapower/busted/modules/luacov.lua'
no file '/home/souz9/cyberok/soldr-modules/luapower/busted/modules/luacov/init.lua'
no file '/home/souz9/cyberok/soldr-modules/utils/busted/modules/luacov.lua'
no file '/home/souz9/cyberok/soldr-modules/utils/busted/modules/luacov/init.lua'
no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/libbusted/modules/luacov.dylib'
no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/clib/busted/modules/luacov.so'
no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/libbusted.dylib'
no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/clib/busted.so'
stack traceback:
[C]: in function 'require'
...erok/soldr-modules/tests_framework/lua/busted/runner.lua:25: in function <...erok/soldr-modules/tests_framework/lua/busted/runner.lua:11>
...cyberok/soldr-modules/tests_framework/lua/bin/busted.lua:12: in main chunk
[C]: at 0x56075317f2f0
Screenshots, screen recording, code snippet
No response
Environment information
$ uname -a
Linux magicbook 6.0.12-artix1-1 #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 22:58:17 +0000 x86_64 GNU/Linux
Which agent binary used?
- darwin-amd64
- linux-386
- linux-amd64
- windows-386
- windows-amd64
souryogurt commented
The same thing happens on my system as well. An included busted
exits with the exact same message. I managed to run tests temporarily using busted installed using luarocks
.
0legovich commented
I have a similar problem.