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

Fix warning output in build_with_symlink_to_path_dependency_with_build_script_in_git #13930

Merged
merged 1 commit into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ use cargo::{
use cargo_test_support::paths::{root, CargoPathExt};
use cargo_test_support::registry::Package;
use cargo_test_support::{
basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, git, is_nightly, main_file,
paths, process, project, rustc_host, sleep_ms, symlink_supported, t, Execs, ProjectBuilder,
basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, cargo_process, compare, git,
is_nightly, main_file, paths, process, project, rustc_host, sleep_ms, symlink_supported, t,
tools, Execs, ProjectBuilder,
};
use cargo_test_support::{cargo_process, compare};
use cargo_test_support::{git_process, tools};
use cargo_util::paths::dylib_path_envvar;
use std::env;
use std::fs;
Expand Down Expand Up @@ -72,16 +71,8 @@ fn build_with_symlink_to_path_dependency_with_build_script_in_git() {
.build();

// It is necessary to have a sub-repository and to add files so there is an index.
git_process("init")
.cwd(root.join("original"))
.build_command()
.status()
.unwrap();
git_process("add .")
.cwd(root.join("original"))
.build_command()
.status()
.unwrap();
let repo = git::init(&root.join("original"));
git::add(&repo);
cargo_process("build").run()
}

Expand Down
Loading