Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Apr 17, 2024
1 parent 2f810a4 commit 634e17a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crossterm::style::{style, StyledContent, Stylize};
use std::{
fmt::{self, Display, Formatter},
fs,
path::Path,
process::{Command, Output},
};

Expand Down Expand Up @@ -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");
}

Expand Down

0 comments on commit 634e17a

Please sign in to comment.