Skip to content

Commit 0745951

Browse files
committed
cram: deduplicate candidates for test not found
Signed-off-by: Ali Caglayan <[email protected]>
1 parent 8273a71 commit 0745951

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bin/runtest_common.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ let all_tests_of_dir parent_dir =
4040
>>| Path.Source.to_string)
4141
in
4242
List.concat [ cram_candidates; dir_candidates ]
43+
|> String.Set.of_list
44+
|> String.Set.to_list
4345
;;
4446

4547
let explain_unsuccessful_search path ~parent_dir =

test/blackbox-tests/test-cases/runtest-cmd-hints.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Test the "did you mean" hints for dune runtest command.
1313

1414
$ dune test dip.t
1515
Error: "dip.t" does not match any known test.
16-
Hint: did you mean dir.t or dir.t?
16+
Hint: did you mean dir.t?
1717
[1]
1818

1919
$ dune test other_dip

0 commit comments

Comments
 (0)