Skip to content

Commit b032f22

Browse files
authored
Merge branch 'main' into git-migration
2 parents b611495 + e7eae9e commit b032f22

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

suite_report.py

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,21 +1287,33 @@ def check_lfric_extract_list(self):
12871287
return_message = ["'''LFRic Testing Requirements'''"]
12881288
return_message.append("")
12891289

1290-
# Export the extract list from the lfric trunk
1291-
exported_extract_file = "~/tmp_extract.txt"
1292-
extract_list_path = self.export_file(
1293-
"fcm:lfric_apps.xm_tr",
1294-
"build/extract/extract.cfg",
1295-
exported_extract_file,
1296-
)
12971290
extract_list_dict = {}
1291+
extract_files = [
1292+
"build/extract/extract.cfg",
1293+
"interfaces/jules_interface/build/extract.cfg",
1294+
"interfaces/socrates_interface/build/extract.cfg",
1295+
]
12981296

1299-
if extract_list_path:
1300-
try:
1301-
extract_list_dict = self.parse_lfric_extract_list(extract_list_path)
1302-
except (EnvironmentError, TypeError, AttributeError):
1303-
# Potential error here changed type between python2 and 3
1304-
extract_list_path = None
1297+
for extract_file in extract_files:
1298+
# Export the extract list from the lfric trunk
1299+
exported_extract_file = "~/tmp_extract.txt"
1300+
extract_list_path = self.export_file(
1301+
"fcm:lfric_apps.xm_tr",
1302+
extract_file,
1303+
exported_extract_file,
1304+
)
1305+
1306+
if extract_list_path:
1307+
try:
1308+
temp_dict = self.parse_lfric_extract_list(extract_list_path)
1309+
for item in temp_dict:
1310+
if item in extract_list_dict:
1311+
extract_list_dict[item] += temp_dict[item]
1312+
else:
1313+
extract_list_dict[item] = temp_dict[item]
1314+
except (EnvironmentError, TypeError, AttributeError):
1315+
# Potential error here changed type between python2 and 3
1316+
extract_list_path = None
13051317

13061318
# If the path returned is None, the extract list failed, most likely as
13071319
# the user doesn't have lfric access. In this case return a warning.

0 commit comments

Comments
 (0)