File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
import glob
3
3
import os
4
4
5
- SUITES_DIR = "./suites/* "
5
+ SUITES_DIR = "./suites"
6
6
7
7
# ARCHITECTURE CAN BE: amd64, arm64, armhf
8
8
# it has high priority over the architecture specified in the suite
@@ -15,11 +15,14 @@ def generate_matrix_json() -> str:
15
15
json_data = { "include" : [ ] }
16
16
17
17
for arch in ARCHITECTURES :
18
- for variantPath in glob .iglob (f"{ SUITES_DIR } /*" , recursive = False ):
18
+ for variantPath in glob .iglob (f"{ SUITES_DIR } /*/* " , recursive = False ):
19
19
suiteName = variantPath .split ('/' )[2 ]
20
20
variantName = variantPath .split ('/' )[3 ]
21
-
22
- if os .path .exists (f"{ variantPath } /.no-matrix-build" ) or os .path .exists (f"{ SUITES_DIR } /{ suiteName } /.no-matrix-build" ):
21
+
22
+ if os .path .exists (f"{ SUITES_DIR } /{ suiteName } /.no-matrix-build" ):
23
+ continue
24
+
25
+ if os .path .exists (f"{ variantPath } /.no-matrix-build" ):
23
26
continue
24
27
25
28
element = { }
You can’t perform that action at this time.
0 commit comments