From 84320616ac54d589be4130f3fb5bff2965cd0398 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Mon, 1 Aug 2022 18:31:50 +0800 Subject: [PATCH] update: `--all` for shadowsocks test --- Basis/Logger.py | 4 ++-- test.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Basis/Logger.py b/Basis/Logger.py index 383cee2..764bf9e 100644 --- a/Basis/Logger.py +++ b/Basis/Logger.py @@ -6,8 +6,8 @@ import logging from colorlog import ColoredFormatter logFile = 'runtime.log' -logLevel = logging.DEBUG -# logLevel = logging.WARNING +# logLevel = logging.DEBUG +logLevel = logging.WARNING dateFormat = '%Y-%m-%d %H:%M:%S' logFormat = '[%(asctime)s] [%(levelname)s] %(message)s (%(module)s.%(funcName)s)' logging.basicConfig( diff --git a/test.py b/test.py index 7eca8c2..2ab60da 100755 --- a/test.py +++ b/test.py @@ -13,7 +13,7 @@ testUrl = 'http://baidu.com' helpMsg = ''' ./test.py [ITEM] [OPTIONS] - [ITEM]: ss / ss-all / ssr / vmess / vless / trojan / trojan-go / brook / hysteria + [ITEM]: ss / ssr / vmess / vless / trojan / trojan-go / brook / hysteria [OPTIONS]: --thread NUM thread number @@ -54,6 +54,8 @@ logging.critical('URL: ' + testUrl) logging.critical('THREAD NUMBER: %i' % threadNum) logging.critical('-------------------------------- TEST START --------------------------------') if testItem is not None: + if testItem == 'ss' and '--all' in sys.argv: + testItem = 'ss-all' Tester.test(Tester.entry[testItem], threadNum, testUrl, testFilter) else: for item in Tester.entry: