mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 13:32:23 -05:00
Fix tests
This commit is contained in:
parent
2f810a4da6
commit
634e17a5ab
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ use crossterm::style::{style, StyledContent, Stylize};
|
||||||
use std::{
|
use std::{
|
||||||
fmt::{self, Display, Formatter},
|
fmt::{self, Display, Formatter},
|
||||||
fs,
|
fs,
|
||||||
|
path::Path,
|
||||||
process::{Command, Output},
|
process::{Command, Output},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ impl Exercise {
|
||||||
cmd.arg(command);
|
cmd.arg(command);
|
||||||
|
|
||||||
// A hack to make `cargo run` work when developing Rustlings.
|
// 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");
|
cmd.arg("--manifest-path").arg("dev/Cargo.toml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue