Skip to content

Commit fe8b5e6

Browse files
committed
Remove now useless patch for run-make test
1 parent e3bb127 commit fe8b5e6

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

build_system/src/test.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -485,30 +485,6 @@ fn setup_rustc(env: &mut Env, args: &TestArg) -> Result<PathBuf, String> {
485485
run_command_with_output_and_env(&[&"git", &"checkout"], rust_dir, Some(env))?;
486486
}
487487

488-
let mut patches = Vec::new();
489-
walk_dir(
490-
"patches/tests",
491-
&mut |_| Ok(()),
492-
&mut |file_path: &Path| {
493-
patches.push(file_path.to_path_buf());
494-
Ok(())
495-
},
496-
false,
497-
)?;
498-
patches.sort();
499-
// TODO: remove duplication with prepare.rs by creating a apply_patch function in the utils
500-
// module.
501-
for file_path in patches {
502-
println!("[GIT] apply `{}`", file_path.display());
503-
let path = Path::new("../..").join(file_path);
504-
run_command_with_output(&[&"git", &"apply", &path], rust_dir)?;
505-
run_command_with_output(&[&"git", &"add", &"-A"], rust_dir)?;
506-
run_command_with_output(
507-
&[&"git", &"commit", &"--no-gpg-sign", &"-m", &format!("Patch {}", path.display())],
508-
rust_dir,
509-
)?;
510-
}
511-
512488
let cargo = String::from_utf8(
513489
run_command_with_env(&[&"rustup", &"which", &"cargo"], rust_dir, Some(env))?.stdout,
514490
)

patches/tests/0001-Workaround-to-make-a-run-make-test-pass.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)