Skip to content

Commit 6381687

Browse files
authored
Merge pull request #39 from jmid/remove-which-dep
Remove `which` dependency
2 parents c508493 + 87c26f3 commit 6381687

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

dune-project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
(ppx_yojson_conv (>= 0.14.0))
3131
stdlib-random
3232
conf-timeout
33-
conf-which
3433
conf-diffutils
3534
;; transitive lower versions to avoid CI errors
3635
(ocaml-compiler-libs (>= v0.12.0))

mutaml.opam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ depends: [
2323
"ppx_yojson_conv" {>= "0.14.0"}
2424
"stdlib-random"
2525
"conf-timeout"
26-
"conf-which"
2726
"conf-diffutils"
2827
"ocaml-compiler-libs" {>= "v0.12.0"}
2928
"ppx_derivers" {>= "1.2.1"}

src/runner/runner.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ let rec run_all_mutation_tests test_cmd muts = match muts with
153153
(** Executable entry point *)
154154

155155
let () =
156-
if 0 <> Sys.command ("which " ^ timeout_cmd ^ " > /dev/null")
156+
if 0 <> Sys.command ("command -v " ^ timeout_cmd ^ " > /dev/null")
157157
then fail_and_exit ("Could not find time-out command: " ^ timeout_cmd)
158158
else
159159
let test_cmd = ref "" in

0 commit comments

Comments
 (0)