1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-16 10:51:42 +02:00

Fix tests

This commit is contained in:
mo8it 2024-04-17 23:37:31 +02:00
parent 2f810a4da6
commit 634e17a5ab

View File

@ -3,6 +3,7 @@ use crossterm::style::{style, StyledContent, Stylize};
use std::{
fmt::{self, Display, Formatter},
fs,
path::Path,
process::{Command, Output},
};
@ -51,7 +52,7 @@ impl Exercise {
cmd.arg(command);
// A hack to make `cargo run` work when developing Rustlings.
if DEVELOPING_OFFICIAL_RUSTLINGS {
if DEVELOPING_OFFICIAL_RUSTLINGS && Path::new("tests").exists() {
cmd.arg("--manifest-path").arg("dev/Cargo.toml");
}