Skip to content

Conversation

@Anda275
Copy link

@Anda275 Anda275 commented Jan 9, 2024

This PR solves:

  • the TODO in the /crates/nu-test-support/src/macros.rs file.
    Here, there was integrated an option to specify a custom plugin path in the 'nu_run_test' and nu_with_plugin_run_test functions. This allows testing with plugins without affecting the user's local environment, ensuring a more controlled and isolated testing setup.
    Specifically, a custom_plugin_path field was added to the NuOpts struct and utilized within the nu_with_plugin_run_test function. If a custom plugin path is provided in the options, it's set as an environment variable for the command that runs the test. This modification enhances the flexibility and robustness of the testing environment in the Nushell.

  • the TODO in the /src/terminal.rs file.
    Here, the signal(SIGCHLD, SigHandler::SigIgn) call became conditional, by executing it only on non-macOS systems to avoid breaking the rm command on macOS.

@alexandruradovici
Copy link

Please explain your pull request.

@Anda275
Copy link
Author

Anda275 commented Jan 15, 2024

@alexandruradovici done

@alexandruradovici
Copy link

Use the 3rd person and make the text more visible (use lists, etc).

@Anda275
Copy link
Author

Anda275 commented Jan 15, 2024

@alexandruradovici done

(
@options [ $($options:tt)* ]
$field:ident : $value:expr,
custom_plugin_path: $value:expr,

Choose a reason for hiding this comment

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

Why this?

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.

2 participants