Skip to content

Commit

Permalink
print more info
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSpy3 committed Dec 22, 2024
1 parent 645b70c commit f9d5e51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_worlds.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def setUp(self):
for rootPath, dirNames, fileNames in os.walk(os.path.join(WEBOTS_HOME, directory)):
for fileName in fnmatch.filter(fileNames, '*.wbt'):
world = os.path.join(rootPath, fileName)
self.worlds.append(world)
if fileName in ("ocean.wbt", "swarm.wbt"):
self.worlds.append(world)
self.webotsFullPath = None
if sys.platform == 'win32':
self.webotsFullPath = os.path.join(WEBOTS_HOME, 'msys64', 'mingw64', 'bin', 'webots.exe')
Expand Down Expand Up @@ -101,6 +102,7 @@ def test_worlds_warnings_and_cache(self):
continue
if errors and not all((any(message in error for message in self.skippedMessages) for error in errors.splitlines())):
problematicWorlds.append(self.worlds[i])
print(f'Errors with {self.worlds[i]}: {errors.splitlines()} ; Skipped Errors: {self.skippedMessages}')
if errors and self.crashError in str(errors):
crashedWorlds.append(self.worlds[i])

Expand Down

0 comments on commit f9d5e51

Please sign in to comment.