Skip to content

Commit

Permalink
Fix path to modules/ directory for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored and David Peter committed Dec 19, 2023
1 parent 01426ac commit be0cb14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion numbat-cli/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ use assert_cmd::Command;
use predicates::boolean::PredicateBooleanExt;

fn numbat() -> Command {
let module_path = Path::new(&std::env::var_os("CARGO_MANIFEST_DIR").unwrap()).join("modules");
let module_path = Path::new(&std::env::var_os("CARGO_MANIFEST_DIR").unwrap())
.parent()
.unwrap()
.join("numbat")
.join("modules");
std::env::set_var("NUMBAT_MODULES_PATH", module_path);

let mut cmd = Command::cargo_bin("numbat").unwrap();
Expand Down

0 comments on commit be0cb14

Please sign in to comment.