Skip to content

Commit 5a3a191

Browse files
committed
Fix error output messages
1 parent e4df149 commit 5a3a191

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clearpath_generator_common/test/test_samples.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ def diff_dir_trees(self, dir_1: str, dir_2: str, shallow: bool = False) -> List:
8282
if len(dirs_cmp.left_only) > 0:
8383
logs.append(
8484
f'Files/directories: {dirs_cmp.left_only}, '
85-
f'only found in installed samples: {dir_1} '
86-
f'not in generated samples: {dir_2}'
85+
f'only found in: {dir_1} '
86+
f'not in: {dir_2}'
8787
)
8888
# Log Only in Generated Directory
8989
if len(dirs_cmp.right_only) > 0:
9090
logs.append(
9191
f'Files/directories: {dirs_cmp.right_only}, '
92-
f'only found in generated samples: {dir_2} '
93-
f'not in installed samples: {dir_1}'
92+
f'only found in: {dir_2} '
93+
f'not in: {dir_1}'
9494
)
9595
# Compare Files
9696
(_, mismatches, errors) = filecmp.cmpfiles(
@@ -118,8 +118,8 @@ def diff_dir_trees(self, dir_1: str, dir_2: str, shallow: bool = False) -> List:
118118
if len(errors) > 0:
119119
logs.append(
120120
f'Errors: {errors} found when '
121-
f'comparing installed samples: {dir_1} '
122-
f'and generated samples: {dir_2}'
121+
f'comparing: {dir_1} '
122+
f'and: {dir_2}'
123123
)
124124
# Recurse
125125
if not shallow:

0 commit comments

Comments
 (0)