Skip to content

Commit

Permalink
Make test folder detection more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Jul 30, 2020
1 parent 2f99a32 commit f7ca8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/parse_dash_results.py
Expand Up @@ -332,7 +332,7 @@ def get_control_image_path(self, test_name):
script_folder, '../tests/testdata/control_images')

matching_control_images = [x[0]
for x in os.walk(control_images_folder) if test_name in x[0]]
for x in os.walk(control_images_folder) if test_name + '/' in x[0] or x[0].endswith(test_name)]
if len(matching_control_images) > 1:
for item in matching_control_images:
print(' - ' + item)
Expand Down

0 comments on commit f7ca8b6

Please sign in to comment.