Skip to content

Adsk Contrib - Fix warning/errors log in unit test#1786

Merged
doug-walker merged 8 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:adsk_contrib/fix-errors-log-in-unit-test
May 4, 2023
Merged

Adsk Contrib - Fix warning/errors log in unit test#1786
doug-walker merged 8 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:adsk_contrib/fix-errors-log-in-unit-test

Conversation

@cedrik-fuoco-adsk
Copy link
Copy Markdown
Contributor

This PR fixes the display of warning/error logs in the unit test. These logs were introduced in OCIO 2.2 because we added new requirements that require some roles to be present.

These logs should not be displayed in the unit test since they are expected in those specific tests. I've added some utility functions to mute and/or check those logs to confirm if they are present or not).

Fix OpenColorIO errors that was introduced a while ago in the unit test because of requirement for config.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Other warnings are not muted anymore when we check for role warnings.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Changing some misuses of StartsWith

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Mute log from built-in config test
Comments

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
…ile not muting all logs (C++ side)

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
…ad of just the line to find

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
@doug-walker doug-walker merged commit 5d49864 into AcademySoftwareFoundation:main May 4, 2023
@doug-walker doug-walker deleted the adsk_contrib/fix-errors-log-in-unit-test branch May 4, 2023 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants