[bazel] Mark all cw310 tests as flaky

Flaky failures will still be reported but will be rerun before failing a
test.

Signed-off-by: Drew Macrae <drewmacrae@google.com>
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 5ff4e5c..391e36e 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -451,6 +451,7 @@
           --test_tag_filters=cw310,-broken \
           --test_output=errors \
           --build_tests_only \
+          --flaky_test_attempts=4 \
           --define cw310=lowrisc \
           $(./bazelisk.sh query 'rdeps(//sw/...,@bitstreams//:bitstream_test_rom)') \
           # All the tests that depend on the test rom
diff --git a/rules/opentitan_test.bzl b/rules/opentitan_test.bzl
index 0014b79..b3a4b64 100644
--- a/rules/opentitan_test.bzl
+++ b/rules/opentitan_test.bzl
@@ -185,6 +185,7 @@
     required_tags = [
         "cw310",
         "exclusive",
+        "flaky",
     ]
     kwargs.update(
         args = required_args + args,