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

[wicket] make CLI more usable in wicketd integration tests #4450

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Nov 7, 2023

Make it so that wicket's CLI is usable in wicketd's integration tests. To
achieve this, make a few changes:

  1. Factor out exec into exec_with_args.
  2. Create the Tokio runtime outside of exec_with_args, and make
    exec_with_args async. This is so that wicketd's
    integration tests can run exec_with_args with a preexisting runtime.
  3. Allow capturing any output not written to logs. For now this is only
    used by the rack_update commands.

Depends on #4062 (mostly because it is more convenient for me that way).

Created using spr 1.3.5
Created using spr 1.3.5
/// Enables capturing of wicket's output.
pub enum OutputKind<'a> {
/// Captures output to the provided log, as well as a buffer.
Captured {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like this variant is ever constructed - is that coming in a subsequent PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, in #4451.

labbott and others added 2 commits November 7, 2023 20:47
Created using spr 1.3.5

[skip ci]
Created using spr 1.3.5
@sunshowers sunshowers changed the base branch from sunshowers/spr/main.wicket-make-cli-more-usable-in-wicketd-integration-tests to main November 8, 2023 04:47
@sunshowers sunshowers enabled auto-merge (squash) November 8, 2023 04:48
@sunshowers sunshowers merged commit 9ff5aa3 into main Nov 8, 2023
19 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/wicket-make-cli-more-usable-in-wicketd-integration-tests branch November 8, 2023 07:45
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