Skip to content

Commit de230c6

Browse files
committed
Change directory to the comparison project when running the benchmark
1 parent 88c81e7 commit de230c6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎comparison/harness/src/main.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ mod capture {
233233
use crate::{
234234
CaptureArgs, Error, clean,
235235
git::{self, Cache},
236-
paths::Paths,
236+
paths::{self, Paths},
237237
};
238238

239239
pub fn main(args: CaptureArgs) -> Result<(), Error> {
@@ -300,7 +300,8 @@ mod capture {
300300

301301
let mut c = Command::new("cargo");
302302

303-
c.env("RUSTUP_TOOLCHAIN", "stable")
303+
c.current_dir(paths::comparison_dir())
304+
.env("RUSTUP_TOOLCHAIN", "stable")
304305
.arg("criterion")
305306
.args(["-p", "comparison"])
306307
.arg("--message-format=json");

0 commit comments

Comments
 (0)