mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 06:50:18 +02:00
Path migration part 2: nu-test-support
(#13329)
# Description Part 2 of replacing `std::path` types with `nu_path` types added in #13115. This PR targets `nu-test-support`.
This commit is contained in:
@@ -4,7 +4,7 @@ use assert_cmd::Command;
|
||||
fn call() {
|
||||
// Add the `nu` binaries to the path env
|
||||
let path_env = std::env::join_paths(
|
||||
std::iter::once(nu_test_support::fs::binaries()).chain(
|
||||
std::iter::once(nu_test_support::fs::binaries().into()).chain(
|
||||
std::env::var_os(nu_test_support::NATIVE_PATH_ENV_VAR)
|
||||
.as_deref()
|
||||
.map(std::env::split_paths)
|
||||
|
@@ -162,7 +162,7 @@ fn plugin_rm_then_restart_nu() {
|
||||
contents.upsert_plugin(PluginRegistryItem {
|
||||
name: "foo".into(),
|
||||
// this doesn't exist, but it should be ok
|
||||
filename: dirs.test().join("nu_plugin_foo"),
|
||||
filename: dirs.test().join("nu_plugin_foo").into(),
|
||||
shell: None,
|
||||
data: valid_plugin_item_data(),
|
||||
});
|
||||
@@ -238,7 +238,7 @@ fn plugin_rm_from_custom_path() {
|
||||
contents.upsert_plugin(PluginRegistryItem {
|
||||
name: "foo".into(),
|
||||
// this doesn't exist, but it should be ok
|
||||
filename: dirs.test().join("nu_plugin_foo"),
|
||||
filename: dirs.test().join("nu_plugin_foo").into(),
|
||||
shell: None,
|
||||
data: valid_plugin_item_data(),
|
||||
});
|
||||
@@ -286,7 +286,7 @@ fn plugin_rm_using_filename() {
|
||||
contents.upsert_plugin(PluginRegistryItem {
|
||||
name: "foo".into(),
|
||||
// this doesn't exist, but it should be ok
|
||||
filename: dirs.test().join("nu_plugin_foo"),
|
||||
filename: dirs.test().join("nu_plugin_foo").into(),
|
||||
shell: None,
|
||||
data: valid_plugin_item_data(),
|
||||
});
|
||||
@@ -344,7 +344,7 @@ fn warning_on_invalid_plugin_item() {
|
||||
contents.upsert_plugin(PluginRegistryItem {
|
||||
name: "badtest".into(),
|
||||
// this doesn't exist, but it should be ok
|
||||
filename: dirs.test().join("nu_plugin_badtest"),
|
||||
filename: dirs.test().join("nu_plugin_badtest").into(),
|
||||
shell: None,
|
||||
data: PluginRegistryItemData::Invalid,
|
||||
});
|
||||
|
Reference in New Issue
Block a user