Skip to content

Commit

Permalink
Merge pull request #255 from justin-richling/casename-fix
Browse files Browse the repository at this point in the history
Casename fix
  • Loading branch information
justin-richling authored Sep 27, 2023
2 parents 36c3558 + 96b2030 commit b12f7c4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/adf_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,18 @@ def __init__(self, config_file, debug=False):
case_names = self.get_cam_info('cam_case_name', required=True)

#Grab test case nickname(s)
test_nicknames = self.get_cam_info('case_nickname')
if test_nicknames is None:
test_nickname_list = self.get_cam_info('case_nickname')

if test_nickname_list:
test_nicknames = [] #set to be an empty list
for i,nickname in enumerate(test_nickname_list):
if nickname is None:
test_nicknames.append(case_names[i])
else:
test_nicknames.append(test_nickname_list[i])
#End if
#End for
else:
test_nicknames = [] #Re-set to be an empty list
for case_name in case_names:
test_nicknames.append(case_name)
Expand Down

0 comments on commit b12f7c4

Please sign in to comment.