Skip to content

Commit

Permalink
Remove dependency on cradle (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
nc7s authored Jun 18, 2024
1 parent 0e8f660 commit 71b72c4
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ unicode-width = "0.1.0"
uuid = { version = "1.0.0", features = ["v4"] }

[dev-dependencies]
cradle = "0.2.0"
executable-path = "1.0.0"
pretty_assertions = "1.0.0"
temptree = "0.2.0"
Expand Down
8 changes: 7 additions & 1 deletion tests/choose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,13 @@ fn status_error() {
"exit-2": "#!/usr/bin/env bash\nexit 2\n",
};

("chmod", "+x", tmp.path().join("exit-2")).run();
let output = Command::new("chmod")
.arg("+x")
.arg(tmp.path().join("exit-2"))
.output()
.unwrap();

assert!(output.status.success());

let path = env::join_paths(
iter::once(tmp.path().to_owned()).chain(env::split_paths(&env::var_os("PATH").unwrap())),
Expand Down
8 changes: 7 additions & 1 deletion tests/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ fn status_error() {
"exit-2": "#!/usr/bin/env bash\nexit 2\n",
};

("chmod", "+x", tmp.path().join("exit-2")).run();
let output = Command::new("chmod")
.arg("+x")
.arg(tmp.path().join("exit-2"))
.output()
.unwrap();

assert!(output.status.success());

let path = env::join_paths(
iter::once(tmp.path().to_owned()).chain(env::split_paths(&env::var_os("PATH").unwrap())),
Expand Down
8 changes: 7 additions & 1 deletion tests/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ fn write_error() {

let justfile_path = test.justfile_path();

("chmod", "400", &justfile_path).run();
let output = Command::new("chmod")
.arg("400")
.arg(&justfile_path)
.output()
.unwrap();

assert!(output.status.success());

let _tempdir = test.run();

Expand Down
1 change: 0 additions & 1 deletion tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pub(crate) use {
tempdir::tempdir,
test::{assert_eval_eq, Output, Test},
},
cradle::input::Input,
executable_path::executable_path,
just::unindent,
libc::{EXIT_FAILURE, EXIT_SUCCESS},
Expand Down

0 comments on commit 71b72c4

Please sign in to comment.