-
Notifications
You must be signed in to change notification settings - Fork 125
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
Support --workdir-root
in the tmt clean
command
#2850
base: main
Are you sure you want to change the base?
Conversation
bccb7e3
to
b4e2de6
Compare
1f8d67b
to
8bd2d7f
Compare
8c8da09
to
8d9a62a
Compare
8d9a62a
to
d3ee2a2
Compare
b845dbc
to
caa18b9
Compare
caa18b9
to
4a5c49e
Compare
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.
lgtm. Just nitpicks.
I'm surprised setting a workdir root is so complicated tbh (not necessarily related to these changes). :)
@skycastlelily would it be possible to log the workdir root please in case the verbose mode is enabled please? Something like:
|
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.
Looks good, just one nitpick. Also proposing a minore release note enhancement in 94b9098. @skycastlelily, does it look goot to you?
--workdir-root
in the tmt clean
command
@skycastlelily, what about extending |
94b9098
to
be4bcc3
Compare
does it look good to you?
Yeah:)
Is the new line really needed here?
I guess so, we need pass workdir_root to Status class,or, let's say,Common
class, so that we can get self.workdir_root there:)
what about extending /tests/clean/basic a bit to add at least a very
basic coverage for the new option?
Done,and updated:)
…On Tue, Oct 22, 2024 at 6:01 PM Petr Šplíchal ***@***.***> wrote:
***@***.**** approved this pull request.
Looks good, just one nitpick. Also proposing a minore release note
enhancement in 94b9098
<94b9098>.
@skycastlelily <https://github.com/skycastlelily>, does it look goot to
you?
------------------------------
In tmt/cli.py
<#2850 (comment)>:
> raise tmt.utils.GeneralError(f"Path '{workdir_root}' doesn't exist.")
status_obj = tmt.Status(
- logger=context.obj.logger.clone().apply_verbosity_options(**kwargs),
- cli_invocation=CliInvocation.from_context(context))
+ logger=context.obj.logger.clone().
+ apply_verbosity_options(**kwargs),
Is the new line really needed here?
—
Reply to this email directly, view it on GitHub
<#2850 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKFR23AVZCNZZ24VWLUPEZTZ4YPAPAVCNFSM6AAAAABGDUNQC6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGOBUGY2DMNZSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
be4bcc3
to
08059db
Compare
d1571d8
to
df9d081
Compare
df9d081
to
b7a6692
Compare
@psss with the test added, perhaps this can get the ready-to-merge label back? |
Pull Request Checklist