Clean up which/which-support Cargo feature (#5019)

* Rename "which" feature to "which-support"

* Ignore currently broken environment tests
This commit is contained in:
Reilly Wood
2022-03-29 04:10:43 -07:00
committed by GitHub
parent a2872b4ccc
commit 79182db587
9 changed files with 30 additions and 14 deletions

View File

@ -1,6 +1,6 @@
use nu_test_support::nu;
#[cfg(feature = "which")]
#[cfg(feature = "which-support")]
#[test]
fn shows_error_for_command_not_found() {
let actual = nu!(
@ -11,7 +11,7 @@ fn shows_error_for_command_not_found() {
assert!(!actual.err.is_empty());
}
#[cfg(feature = "which")]
#[cfg(feature = "which-support")]
#[test]
fn shows_error_for_command_not_found_in_pipeline() {
let actual = nu!(
@ -23,7 +23,7 @@ fn shows_error_for_command_not_found_in_pipeline() {
}
#[ignore] // jt: we can't test this using the -c workaround currently
#[cfg(feature = "which")]
#[cfg(feature = "which-support")]
#[test]
fn automatically_change_directory() {
use nu_test_support::playground::Playground;

View File

@ -647,7 +647,7 @@ fn run_dynamic_blocks() {
assert_eq!(actual.out, "holaaaa");
}
#[cfg(feature = "which")]
#[cfg(feature = "which-support")]
#[test]
fn argument_subexpression_reports_errors() {
let actual = nu!(