summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorRobin Linden <dev@robinlinden.eu>2019-11-17 01:24:02 +0100
committerRobin Linden <dev@robinlinden.eu>2019-11-17 01:24:02 +0100
commit79748dd9e591b59396964588cd2ddb400e85c995 (patch)
tree2db62448371f00cce97da4cfc4b27f327ecf044e /auto_tests
parentf6235b5f8d01a64a9844d4879fcd73f264cdef18 (diff)
Allow Bazel to rerun tests marked as flaky
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/BUILD.bazel10
1 files changed, 10 insertions, 0 deletions
diff --git a/auto_tests/BUILD.bazel b/auto_tests/BUILD.bazel
index eb9acb06..23b948e5 100644
--- a/auto_tests/BUILD.bazel
+++ b/auto_tests/BUILD.bazel
@@ -14,12 +14,22 @@ test_sizes = {
14 "conference_peer_nick_test": "medium", 14 "conference_peer_nick_test": "medium",
15} 15}
16 16
17flaky_tests = {
18 "crypto_core_test": True,
19 "lan_discovery_test": True,
20 "tcp_relay_test": True,
21}
22
17[cc_test( 23[cc_test(
18 name = src[:-2], 24 name = src[:-2],
19 size = test_sizes.get( 25 size = test_sizes.get(
20 src[:-2], 26 src[:-2],
21 "small", 27 "small",
22 ), 28 ),
29 flaky = flaky_tests.get(
30 src[:-2],
31 False,
32 ),
23 srcs = [src], 33 srcs = [src],
24 args = ["$(location %s)" % src], 34 args = ["$(location %s)" % src],
25 copts = ["-Wno-sign-compare"], 35 copts = ["-Wno-sign-compare"],