Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

cedrik-fuoco-adsk
Copy link
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
18 checks passed
@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.

None yet

3 participants