Enable retry_only_failed_tests unit_tests on select builders

Enabled on:
linux-lacros-rel
linux-chromeos-rel
linux-rel
linux-wayland-rel
linux_chromium_asan_rel_ng

Bug: 1480056
Change-Id: I930e33b87fc4f5424393c510d67ca6a8a660cabf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4851661
Reviewed-by: Erik Staab <[email protected]>
Commit-Queue: Stephanie Kim <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1195576}
diff --git a/testing/buildbot/test_suite_exceptions.pyl b/testing/buildbot/test_suite_exceptions.pyl
index 742f00d..65ad050 100644
--- a/testing/buildbot/test_suite_exceptions.pyl
+++ b/testing/buildbot/test_suite_exceptions.pyl
@@ -4450,6 +4450,9 @@
     ],
     'modifications': {
       'Linux ASan LSan Tests (1)': {
+        # Only retry the individual failed tests instead of rerunning entire
+        # shards.
+        'retry_only_failed_tests': True,
         # These are slow on the ASAN trybot for some reason.
         # crbug.com/1257927
         'swarming': {
@@ -4475,11 +4478,19 @@
           'shards': 2,
         },
       },
+      'Linux Tests': {
+        # Only retry the individual failed tests instead of rerunning entire
+        # shards.
+        'retry_only_failed_tests': True,
+      },
       # https://crbug.com/1184127
       'Linux Tests (Wayland)': {
         'args': [
           '--test-launcher-filter-file=../../testing/buildbot/filters/ozone-linux.unit_tests_wayland.filter',
         ],
+        # Only retry the individual failed tests instead of rerunning entire
+        # shards.
+        'retry_only_failed_tests': True,
       },
       'Mac13 Tests': {
         'swarming': {
@@ -4517,6 +4528,9 @@
         },
       },
       'linux-chromeos-rel': {
+        # Only retry the individual failed tests instead of rerunning entire
+        # shards.
+        'retry_only_failed_tests': True,
         'swarming': {
           'shards': 2,
         },
@@ -4533,6 +4547,11 @@
           'shards': 2,
         },
       },
+      'linux-lacros-tester-rel': {
+        # Only retry the individual failed tests instead of rerunning entire
+        # shards.
+        'retry_only_failed_tests': True,
+      },
       'linux-rel-dev': {
         'swarming': {
           'dimensions': {