From e6af6b2062ac84eb29cf6dd23b06db399a726063 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 7 Oct 2022 21:29:00 +0800 Subject: [PATCH] up --- plugins/op_waf/t/index.py | 12 +++++------- plugins/op_waf/t/test.sh | 3 +++ 2 files changed, 8 insertions(+), 7 deletions(-) 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 + +