@@ -9,8 +9,8 @@ import json
9
9
import requests
10
10
11
11
HERE = os.path.dirname(__file__)
12
- ROOT = os.path.abspath(os.path.join(HERE, " .." ))
13
- READIES = " /w/rafi_1/ readies"
12
+ ROOT = os.path.abspath(os.path.join(HERE, " ../.. " ))
13
+ READIES = os.path.abspath(os.path.join(ROOT, " deps/ readies" ))
14
14
sys.path.insert(0, READIES)
15
15
import paella
16
16
@@ -65,7 +65,7 @@ RS_VERSIONS file includes Redis Enterprive versions for release tests.
65
65
66
66
67
67
class Test:
68
- def __init__(self, token, test_fname, modver, snapshot, rsver, osnick, light ):
68
+ def __init__(self, token, test_fname, modver, snapshot, rsver, osnick):
69
69
global NOP, VERBOSE
70
70
71
71
self.token = token
@@ -74,7 +74,6 @@ class Test:
74
74
self.snapshot = snapshot
75
75
self.rsver = rsver
76
76
self.osnick = osnick
77
- self.light = light
78
77
79
78
os.environ[' RS_MODULE_DIR' ] = ' rejson'
80
79
self.rsmod = ' ReJSON'
@@ -126,7 +125,6 @@ class Test:
126
125
if NOP:
127
126
return 0
128
127
129
- BB ()
130
128
res = requests.post(f" https://{OPERETO3_URL}/processes" , verify=False,
131
129
headers={' Authorization' : f' Bearer {self.token}' ,
132
130
' Content-Type' : ' application/json' },
@@ -157,7 +155,7 @@ class Test:
157
155
@click.option(' --nop' , is_flag=True, default=False, help=' Dry run' )
158
156
@click.option(' --verbose' , ' -v' , is_flag=True, default=False, help=' Be verbose' )
159
157
@click.option(' --verbosity' , type=int, default=0, help=' Verbosity level' )
160
- def main(token, test, modver, snapshot, rsver, osnick, light , quick, nop, verbose, verbosity, * args, ** kwargs):
158
+ def main(token, test, modver, snapshot, rsver, osnick, common , quick, nop, verbose, verbosity, * args, ** kwargs):
161
159
BB ()
162
160
global NOP, VERBOSE
163
161
VERBOSE = 1 if verbose else verbosity
@@ -172,13 +170,13 @@ def main(token, test, modver, snapshot, rsver, osnick, light, quick, nop, verbos
172
170
raise click.ClickException(f" Invalid test name: {test}" )
173
171
174
172
if rsver is not None:
175
- Test(token, test_fname, modver, snapshot, rsver, osnick, light ).run ()
173
+ Test(token, test_fname, modver, snapshot, rsver, osnick).run ()
176
174
else:
177
175
rs_versions = paella.flines(os.path.join(HERE, ' RS_VERSIONS' ))
178
176
if quick:
179
177
rs_versions = [rs_versions[0]]
180
178
for rsver in rs_versions:
181
- Test(token, test_fname, modver, snapshot, rsver, osnick, light ).run ()
179
+ Test(token, test_fname, modver, snapshot, rsver, osnick).run ()
182
180
183
181
184
182
if __name__ == ' __main__' :
0 commit comments