Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 3.129.249.117
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
cloudlinux /
venv /
lib /
python3.11 /
site-packages /
lvestats /
lib /
parsers /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
197
B
-rw-r--r--
cloudlinux_statistics_parser.p...
8.01
KB
-rw-r--r--
cloudlinux_top_argparse.py
2.76
KB
-rw-r--r--
lve_create_db_argparse.py
1.59
KB
-rw-r--r--
lve_read_snapshot_argparse.py
3.29
KB
-rw-r--r--
lveinfoargparse.py
25.23
KB
-rw-r--r--
run_tests_argparse.py
2.96
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : run_tests_argparse.py
# coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from __future__ import absolute_import import argparse ALLOWED_DB_TYPES = ("postgresql", "mysql", "sqlite") class VAction(argparse.Action): def __call__(self, parser, args, values, option_string=None): # print 'values: {v!r}'.format(v=values) if values is None: values = '1' try: values = int(values) except ValueError: values = values.count('v') + 1 setattr(args, self.dest, values) def run_tests_parser(): parser = argparse.ArgumentParser(prog="lvestats-run-tests", add_help=True, description="LveStats2 tests") parser.add_argument("-dt", "--db-type", help="type of db, should be one of %s" % str(ALLOWED_DB_TYPES), dest="dbtype", default="sqlite", required=True) parser.add_argument("-dl", "--db-login", help="database login", dest="login", required=False) parser.add_argument("-dp", "--db-password", help="database password", dest="password", required=False) parser.add_argument("-dh", "--db-host", help="dtabase host", dest="host", default="localhost") parser.add_argument("--db-tests-only", action="store_true", dest="db_only", default=False) parser.add_argument("--with-tap", action="store_true", dest="with_tap", default=None) parser.add_argument("-dn", "--db-name", help="database name; default in memory for sqlite and temporary for mysql/postgresqll", dest="dbname") parser.add_argument("-p", "--pattern", help="running test pattern", dest="pattern", default="test_") parser.add_argument("-w", "--with-path", help="add PYTHONPATH", dest="path") parser.add_argument("--without-coverage", action='store_false', default=True, dest="coverage") verbose_parser = parser.add_mutually_exclusive_group() verbose_parser.add_argument('-q', '--quiet', action="store_true", default=False, help='quiet operation') verbose_parser.add_argument('-v', nargs='?', action=VAction, default=0, dest='verbose', help='verbose operation; for example -v or -vv') return parser
Close