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

Fixing a bug with --debug=sconscript #4447

Merged
merged 6 commits into from
Nov 29, 2023

Conversation

StenGruener
Copy link
Contributor

@StenGruener StenGruener commented Nov 29, 2023

Fixing a bug with --debug=sconscript where no exit message was emitted on exception catch

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
    already present
  • I have updated CHANGES.txt (and read the README.rst)
    already present
  • I have updated the appropriate documentation
    already present

@bdbaddog
Copy link
Contributor

If your existing test didn't catch this, then there is not a test to check this code change, and really one should be added to satisfy the PR requirements.

@StenGruener
Copy link
Contributor Author

StenGruener commented Nov 29, 2023 via email

@bdbaddog
Copy link
Contributor

bdbaddog commented Nov 29, 2023

True, could you kindly help me out an tell me when the return exception is thrown?

That exception is generated when you use Return("foo", stop=True), so if you added a second SConstruct in your existing test and checked for the expected output, you should be covered.
Then of course add update to CHANGES/RELEASE with this change, as your previous PR has been included in the last release.

@StenGruener
Copy link
Contributor Author

@bdbaddog I hope it is okay now, thanks for the hint!

@bdbaddog
Copy link
Contributor

Also entries in CHANGES.txt should be ordered by contributors last name.

@bdbaddog
Copy link
Contributor

Also need blurb in RELEASE.txt, other than that looks good.

Your second test should fail without your fix right?

@StenGruener
Copy link
Contributor Author

Also need blurb in RELEASE.txt, other than that looks good.

Your second test should fail without your fix right?

this is true

@StenGruener
Copy link
Contributor Author

other changes also done

@bdbaddog bdbaddog merged commit a998627 into SCons:master Nov 29, 2023
@mwichmann mwichmann added the --debug related to --debug command line arg label Nov 30, 2023
@mwichmann mwichmann added this to the 4.7 milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--debug related to --debug command line arg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants