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

Sonar warning fixes and improvements #1563

Merged
merged 1 commit into from
Aug 28, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Aug 28, 2022

  • Minor changes to fix a couple more warnings given by SonarCloud
    static analysis.

  • Get the code coverage enabled, it wasn't running properly.

  • testrender: allow secret TESTRENDER_AA to override command line --aa

  • runtest.py: allow secret OSL_TESTSUITE_SKIP_DIFF to force skipping
    the reference comparison step.

  • For analysis run, set TESTRENDER_AA=1 to keep the tests from being
    prohibitively expensive, and OSL_TESTSUITE_SKIP_DIFF=1 to keep it
    from failing because the aa=1 images are different.

Signed-off-by: Larry Gritz [email protected]

* Minor changes to fix a couple more warnings given by SonarCloud
  static analysis.

* Get the code coverage enabled, it wasn't running properly.

* testrender: allow secret TESTRENDER_AA to override command line --aa

* runtest.py: allow secret OSL_TESTSUITE_SKIP_DIFF to force skipping
  the reference comparison step.

* For analysis run, set TESTRENDER_AA=1 to keep the tests from being
  prohibitively expensive, and OSL_TESTSUITE_SKIP_DIFF=1 to keep it
  from failing because the aa=1 images are different.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz merged commit 37cbab5 into AcademySoftwareFoundation:main Aug 28, 2022
@lgritz lgritz deleted the lg-analysis branch August 29, 2022 06:21
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Aug 29, 2022
…ion#1563)

* Minor changes to fix a couple more warnings given by SonarCloud
  static analysis.

* Get the code coverage enabled, it wasn't running properly.

* testrender: allow secret TESTRENDER_AA to override command line --aa

* runtest.py: allow secret OSL_TESTSUITE_SKIP_DIFF to force skipping
  the reference comparison step.

* For analysis run, set TESTRENDER_AA=1 to keep the tests from being
  prohibitively expensive, and OSL_TESTSUITE_SKIP_DIFF=1 to keep it
  from failing because the aa=1 images are different.

Signed-off-by: Larry Gritz <[email protected]>
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Aug 29, 2022
…ion#1563)

* Minor changes to fix a couple more warnings given by SonarCloud
  static analysis.

* Get the code coverage enabled, it wasn't running properly.

* testrender: allow secret TESTRENDER_AA to override command line --aa

* runtest.py: allow secret OSL_TESTSUITE_SKIP_DIFF to force skipping
  the reference comparison step.

* For analysis run, set TESTRENDER_AA=1 to keep the tests from being
  prohibitively expensive, and OSL_TESTSUITE_SKIP_DIFF=1 to keep it
  from failing because the aa=1 images are different.

Signed-off-by: Larry Gritz <[email protected]>
lgritz pushed a commit that referenced this pull request Sep 28, 2023
PR #1563 accidentally changed tests to accept failing commands by
default. (This seems to have been a mistake -- a temporary change
added when debugging that LG neglected to remove before submitting
the PR.)

This can cause tests to pass even though the program crashed, when
a previous run created the correct output file.

---------

Signed-off-by: Brecht Van Lommel <[email protected]>
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.

2 participants