diff --git a/plugins/op_waf/t/index.py b/plugins/op_waf/t/index.py index fc9b3fec6..b0cccb57a 100644 --- a/plugins/op_waf/t/index.py +++ b/plugins/op_waf/t/index.py @@ -7,15 +7,13 @@ import time import json +TEST_URL = "t1.cn" + + def run(): print('op lua run ok') if __name__ == "__main__": if len(sys.argv) > 1: - action = sys.argv[1] - if action == "remove": - removeBgTask() - elif action == "add": - createBgTask() - elif action == "run": - run() + if action == "run": + run() diff --git a/plugins/op_waf/t/test.sh b/plugins/op_waf/t/test.sh index 10ee23234..191618015 100755 --- a/plugins/op_waf/t/test.sh +++ b/plugins/op_waf/t/test.sh @@ -2,3 +2,6 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH +python3 index.py + +