File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,9 @@ let of_label label = { label; variant = None }
12
12
If it is experimental we allow those builds to fail without failing the
13
13
overall build for a commit. *)
14
14
let experimental_variant s =
15
- if
16
- Astring.String. (
17
- is_prefix ~affix: Variant. lower_bound_label s.label
18
- || is_prefix ~affix: Variant. opam_label s.label)
19
- then true
20
- else
21
- match s.variant with
22
- | None -> false
23
- | Some v ->
24
- Astring.String. equal " freebsd" (Variant. distro v)
25
- || Astring.String. equal " macos-homebrew" (Variant. distro v)
15
+ Astring.String. (
16
+ is_prefix ~affix: Variant. lower_bound_label s.label
17
+ || is_prefix ~affix: Variant. opam_label s.label)
26
18
27
19
(* * Like [experimental_variant], but takes strings for when a [build_info]
28
20
record is unavailable.
@@ -32,6 +24,4 @@ let experimental_variant s =
32
24
let experimental_variant_str s =
33
25
Astring.String. (
34
26
is_prefix ~affix: Variant. lower_bound_label s
35
- || is_prefix ~affix: Variant. opam_label s
36
- || is_prefix ~affix: " freebsd" s
37
- || is_prefix ~affix: " macos-homebrew" s)
27
+ || is_prefix ~affix: Variant. opam_label s)
Original file line number Diff line number Diff line change @@ -92,17 +92,6 @@ let test_experimental () =
92
92
[
93
93
(true , of_label Variant. lower_bound_label);
94
94
(false , of_label Variant. doc_label);
95
- ( true ,
96
- {
97
- label = " " ;
98
- variant =
99
- Some (variant " macos-homebrew" Ocaml_version.Releases. v5_0);
100
- } );
101
- ( true ,
102
- {
103
- label = " " ;
104
- variant = Some (variant " freebsd" Ocaml_version.Releases. v5_1);
105
- } );
106
95
( false ,
107
96
{
108
97
label = " " ;
You can’t perform that action at this time.
0 commit comments