You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/01/26 01:16:36 UTC

[apisix] branch master updated: test: ensure all Lua code is installed (#6192)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new b57f523  test: ensure all Lua code is installed (#6192)
b57f523 is described below

commit b57f52302c902f026b73e30bc6349d3ffdbe9e55
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Wed Jan 26 09:16:29 2022 +0800

    test: ensure all Lua code is installed (#6192)
---
 ci/linux_apisix_master_luarocks_runner.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ci/linux_apisix_master_luarocks_runner.sh b/ci/linux_apisix_master_luarocks_runner.sh
index a75fdf6..37cb12e 100755
--- a/ci/linux_apisix_master_luarocks_runner.sh
+++ b/ci/linux_apisix_master_luarocks_runner.sh
@@ -30,7 +30,7 @@ script() {
     export_or_prefix
     openresty -V
 
-    sudo rm -rf /usr/local/apisix
+    sudo rm -rf /usr/local/share/lua/5.1/apisix
 
     # run the test case in an empty folder
     mkdir tmp && cd tmp
@@ -38,6 +38,8 @@ script() {
 
     # install APISIX by luarocks
     sudo luarocks install $APISIX_MAIN > build.log 2>&1 || (cat build.log && exit 1)
+    # ensure all files under ../apisix is installed
+    diff -rq ../apisix /usr/local/share/lua/5.1/apisix || exit 1
     cp ../bin/apisix /usr/local/bin/apisix
 
     # show install files