@@ -51,6 +51,7 @@ dir = {
51
51
"guiTestReport" : "/drone/src/test/gui/guiReportUpload" ,
52
52
"build" : "/drone/src/build" ,
53
53
"pythonModules" : "/usr/local/lib/python3.10/site-packages" ,
54
+ "pythonModules64" : "/usr/local/lib64/python3.10/site-packages" ,
54
55
}
55
56
56
57
notify_channels = {
@@ -77,14 +78,26 @@ build_config = {
77
78
"command" : "ninja" ,
78
79
}
79
80
80
- pip_pipeline_volume = [{
81
- "name" : "python" ,
82
- "temp" : {},
83
- }]
84
- pip_step_volume = [{
85
- "name" : "python" ,
86
- "path" : dir ["pythonModules" ],
87
- }]
81
+ pip_pipeline_volume = [
82
+ {
83
+ "name" : "python" ,
84
+ "temp" : {},
85
+ },
86
+ {
87
+ "name" : "python" ,
88
+ "temp" : {},
89
+ },
90
+ ]
91
+ pip_step_volume = [
92
+ {
93
+ "name" : "python" ,
94
+ "path" : dir ["pythonModules" ],
95
+ },
96
+ {
97
+ "name" : "python" ,
98
+ "path" : dir ["pythonModules64" ],
99
+ },
100
+ ]
88
101
89
102
config = {
90
103
"gui-tests" : {
@@ -186,7 +199,14 @@ def unit_test_pipeline(ctx):
186
199
def gui_test_pipeline (ctx ):
187
200
pipelines = []
188
201
for server , params in config ["gui-tests" ]["servers" ].items ():
189
- squish_parameters = "--reportgen html,%s --envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false --tags ~@skip --tags ~@skipOnLinux" % dir ["guiTestReport" ]
202
+ squish_parameters = [
203
+ "--testsuite %s" % dir ["guiTest" ],
204
+ "--reportgen html,%s" % dir ["guiTestReport" ],
205
+ "--envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false" ,
206
+ "--tags ~@skip" ,
207
+ "--tags ~@skipOnLinux" ,
208
+ ]
209
+
190
210
if params .get ("skip" , False ):
191
211
continue
192
212
if ctx .build .event == "pull_request" and params .get ("skip_in_pr" , False ) and not "full-ci" in ctx .build .title .lower ():
@@ -199,7 +219,8 @@ def gui_test_pipeline(ctx):
199
219
pipeline_name = "GUI-tests-%s" % server
200
220
201
221
if params ["tags" ]:
202
- squish_parameters += " --tags %s" % params ["tags" ]
222
+ squish_parameters .append ("--tags %s" % params ["tags" ])
223
+ squish_parameters = " " .join (squish_parameters )
203
224
204
225
steps = skipIfUnchanged (ctx , "gui-tests" ) + \
205
226
build_client (OC_CI_SQUISH , False )
@@ -216,7 +237,7 @@ def gui_test_pipeline(ctx):
216
237
databaseService ()
217
238
else :
218
239
steps += ocisService (params ["version" ]) + \
219
- waitForOcisService ( )
240
+ waitForService ( "ocis" , "ocis:9200" )
220
241
221
242
steps += installPnpm () + \
222
243
install_python_modules () + \
@@ -599,12 +620,14 @@ def ocisService(server_version = "latest"):
599
620
],
600
621
}]
601
622
602
- def waitForOcisService ():
623
+ def waitForService (name , servers ):
624
+ if type (servers ) == "string" :
625
+ servers = [servers ]
603
626
return [{
604
- "name" : "wait-for-ocis" ,
627
+ "name" : "wait-for-%s" % name ,
605
628
"image" : OC_CI_WAIT_FOR ,
606
629
"commands" : [
607
- "wait-for -it ocis:9200 -t 300" ,
630
+ "wait-for -it %s -t 300" % "," . join ( servers ) ,
608
631
],
609
632
}]
610
633
0 commit comments