Use BAZEL_CURRENT_REPOSITORY to pick up test data files

The old version of Bazel's runfiles.h header was incompatible with
bzlmod. Modules consuming BoringSSL could not successfully run tests.

There's now an extra parameter and a BAZEL_CURRENT_REPOSITORY macro
injected into the build, which resolves this. With this, running tests
from a downstream module now works:

    cd util/bazel-example
    bazelisk test @boringssl//:crypto_test

Change-Id: I43061cd4bc94cf69ed5b0d0f63715542f2a95d0e
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/74067
Commit-Queue: Bob Beck <bbe@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
diff --git a/crypto/test/test_data.cc b/crypto/test/test_data.cc
index f0e6922..fd77b5f 100644
--- a/crypto/test/test_data.cc
+++ b/crypto/test/test_data.cc
@@ -29,7 +29,8 @@
 std::string GetTestData(const char *path) {
 #if defined(BORINGSSL_USE_BAZEL_RUNFILES)
   std::string error;
-  std::unique_ptr<Runfiles> runfiles(Runfiles::CreateForTest(&error));
+  std::unique_ptr<Runfiles> runfiles(
+      Runfiles::CreateForTest(BAZEL_CURRENT_REPOSITORY, &error));
   if (runfiles == nullptr) {
     fprintf(stderr, "Could not initialize runfiles: %s\n", error.c_str());
     abort();