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

fix: startfile mock on non-win platforms #15

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

AWS-Samuel
Copy link
Contributor

What was the problem/requirement? (What/Why)

One job-bundle fails on non windows platform because a platform-dependent attribute will not exist and cannot be mocked.

What was the solution? (How)

Add create=True to the mock call. This will create the attribute on linux/macOS. Could also conditionally mock but in my opinion would look more ugly and this does not harm anything.

What is the impact of this change?

Unblock this test on linux/mac

How was this change tested?

Did you run the "Job Bundle Output Tests"? If not, why not? If so, paste the test results here.

No, because this does not change job-bundle related code and this change is simple enough to not warrant it.

Was this change documented?

No

Is this a breaking change?

No

Signed-off-by: Samuel Anderson <samcan@amazon.com>
@AWS-Samuel AWS-Samuel requested a review from a team as a code owner September 8, 2023 17:29
@mwiebe mwiebe merged commit aeb5162 into mainline Sep 8, 2023
5 checks passed
@mwiebe mwiebe deleted the samuel/fix-startfile-mock branch September 8, 2023 18:29
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.

3 participants