Do not use relative paths to Rust source root in run-make tests

This commit is contained in:
Jakub Beránek 2024-06-06 18:35:46 +02:00
parent 67caf52fbc
commit 6e1121b492
No known key found for this signature in database
GPG key ID: 909CD0D26483516B
8 changed files with 16 additions and 15 deletions

View file

@ -83,11 +83,12 @@ pub fn python_command() -> Command {
pub fn htmldocck() -> Command {
let mut python = python_command();
python.arg(source_path().join("src/etc/htmldocck.py"));
python.arg(source_root().join("src/etc/htmldocck.py"));
python
}
pub fn source_path() -> PathBuf {
/// Path to the root rust-lang/rust source checkout.
pub fn source_root() -> PathBuf {
env_var("S").into()
}