mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-03 12:37:36 +08:00
CI: turn off the Lua code coverage check in CI. (#2435)
We don't enable Lua code override now, its output is unstable and this is unacceptable. Disabling the Lua code override first will make CI run faster. * test: print more information when failed.
This commit is contained in:
parent
b5fe9ced45
commit
78910d828b
@ -169,7 +169,8 @@ script() {
|
||||
sudo bash ./utils/check-plugins-code.sh
|
||||
|
||||
make lint && make license-check || exit 1
|
||||
APISIX_ENABLE_LUACOV=1 PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
|
||||
# APISIX_ENABLE_LUACOV=1 PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
|
||||
PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
|
||||
}
|
||||
|
||||
after_success() {
|
||||
|
@ -32,6 +32,7 @@ __DATA__
|
||||
--- config
|
||||
location /test {
|
||||
content_by_lua_block {
|
||||
ngx.sleep(0.3)
|
||||
local log_file = ngx.config.prefix() .. "logs/error.log"
|
||||
local file = io.open(log_file, "r")
|
||||
local log = file:read("*a")
|
||||
@ -62,6 +63,10 @@ __DATA__
|
||||
local pre = random_nums[i - 1]
|
||||
local cur = random_nums[i]
|
||||
ngx.say("random[", i - 1, "] == random[", i, "]: ", pre == cur)
|
||||
if not pre == cur then
|
||||
ngx.say("random info in log: ", table.concat(random_nums, ", "))
|
||||
break
|
||||
end
|
||||
end
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user