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

Added tests for scons_util.py #479

Merged
merged 9 commits into from
Nov 29, 2024
Merged

Added tests for scons_util.py #479

merged 9 commits into from
Nov 29, 2024

Conversation

zapta
Copy link
Collaborator

@zapta zapta commented Nov 29, 2024

For detailed description please see the individual commits.

The main topic of this PR are unit tests for acons_util.py.

The motivation is testibility of scons_utils.py. The default scons
env is a singleton and thus inerferes with multiple tests in the
same pytest process that need to create an env from scratch.
Also added an assertion that the default env is not used by

mistake in the SConstruct code.
just reset it in the tests before creating a new environment.
This simplifies the code.
@Obijuan Obijuan merged commit 1b28d89 into FPGAwars:develop Nov 29, 2024
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