pass bep_file to has_flaky_tests
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 5d52c38..00f0a9e 100644
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -279,7 +279,7 @@
                                            config.get("test_targets", None), bep_file)
             print("\nAfter Execute Test\n")
             # Fail the pipeline if there were any flaky tests.
-            if has_flaky_tests() and exit_code == 0:
+            if has_flaky_tests(bep_file) and exit_code == 0:
                 exit_code = 1
             print("\nBefore Upload Test\n")
             upload_test_logs(bep_file, tmpdir)