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

Pass Environment To CMake in all Cases #235

Closed
wants to merge 2 commits into from

Conversation

LeStarch
Copy link
Collaborator

Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n)

Change Description

When settings.ini defines an environment, it needs to ensure that that environment is passed to CMake in all cases (with the exception of the cmake --help test.

Rationale

Fixes nasa/fprime#2033

Testing/Review Recommendations

Added a number of UTs to test key functionality in cmake.py

Future Work

Environment should be passed to wrapped utilities too (fpp, etc). This will require more work: nasa/fprime#3081

This extra work is not the cause of the reported issue.

@LeStarch LeStarch requested a review from thomas-bc December 18, 2024 01:35
stdout, stderr = cmake_handler._run_cmake(
arguments=arguments, workdir=test_directory, environment=environment, write_override=True)
# Read only mode
arguments = arguments

Check failure

Code scanning / CodeQL

Redundant assignment Error test

This assignment assigns a variable to itself.
cmake_refresh_cache(True, cmake_handler)


def test_refresh_cache_refresh(cmake_handler):

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning test

This assignment to 'test_refresh_cache_refresh' is unnecessary as it is
redefined
before this value is used.
@LeStarch
Copy link
Collaborator Author

Closing, incorrect branch and issue.

@LeStarch LeStarch closed this Dec 18, 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.

Build F´ Targets Wrapper
1 participant