Skip to content

Commit

Permalink
Run tests unattached to packages
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jan 13, 2021
1 parent 4cefe63 commit 257d44b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dune_rules/cram_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ let rules ~sctx ~expander ~dir tests =
match !Clflags.only_packages with
| None -> test_rule ()
| Some only ->
if Package.Name.Set.(not (is_empty (inter only effective.packages)))
if
Package.Name.Set.is_empty effective.packages
|| Package.Name.Set.(not (is_empty (inter only effective.packages)))
then
test_rule ())

0 comments on commit 257d44b

Please sign in to comment.