-
Notifications
You must be signed in to change notification settings - Fork 15
fix(testing): don't change the output artifact location #758
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -482,10 +482,6 @@ def _run( | |
|
||
if parsed_args.test_path: | ||
testing_service.validate_tests(parsed_args.test_path) | ||
# Output into the spread directory. | ||
parsed_args.output = pathlib.Path.cwd() / "spread" | ||
parsed_args.output.mkdir(exist_ok=True) | ||
parsed_args.fetch_service_policy = None | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about this fetch service policy change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lengau Why was this change needed when changing the output directory? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The policy change was unrelated - we were just setting it so when the |
||
|
||
# Don't enter a shell during the packing step, but save those values | ||
# for the testing service. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't really address the fact that the testing command doesn't support the
output
parameter right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need further discussion. We need to test the artifact generated by pack, and this is not possible if output points to somewhere outside the project tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mean outputs outside of the project tree, because we can't pack those anyway. I mean outputs that are subdirectories of the project dir. For example, you removed this hardcoded setting but what if the user does
snapcraft test --output=spread/
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--output
isn't in the argument parser for thetest
command so that will give a usage error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah alright then!