From ea9aba4c6ef631113b38a30892d4de9755cd1dff Mon Sep 17 00:00:00 2001
From: YoungSeok Yoon <youngseokyoon@google.com>
Date: Tue, 29 Dec 2020 21:09:22 -0800
Subject: [PATCH] Rename the ObjC tests target name

PiperOrigin-RevId: 349507423
Change-Id: I9cf2809cbb12c88731bdc81ec95445c5428d3f0a
---
 tensorflow/lite/objc/BUILD.apple                          | 8 ++++----
 tensorflow/lite/objc/README.md                            | 4 ++--
 .../Configs/TensorFlowLite.tulsigen                       | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tensorflow/lite/objc/BUILD.apple b/tensorflow/lite/objc/BUILD.apple
index 3fc4aedfb57..62d6a7cfe24 100644
--- a/tensorflow/lite/objc/BUILD.apple
+++ b/tensorflow/lite/objc/BUILD.apple
@@ -71,14 +71,14 @@ objc_library(
     alwayslink = 1,
 )
 
+# NOTE: This test target name must be lower-cased in order to match it with the
+# directory name. (See: b/174508866)
 ios_unit_test(
-    name = "Tests",
+    name = "tests",
     size = "medium",
     minimum_os_version = TFL_MINIMUM_OS_VERSION,
     runner = tflite_ios_lab_runner("IOS_LATEST"),
-    tags = TFL_DEFAULT_TAGS + TFL_DISABLED_SANITIZER_TAGS + [
-        "nozapfhahn",  # TODO(b/145984659): Enable after solving tool failure.
-    ],
+    tags = TFL_DEFAULT_TAGS + TFL_DISABLED_SANITIZER_TAGS,
     deps = [
         ":TestsLibrary",
     ],
diff --git a/tensorflow/lite/objc/README.md b/tensorflow/lite/objc/README.md
index 7af9c742132..5ab6c8132bc 100644
--- a/tensorflow/lite/objc/README.md
+++ b/tensorflow/lite/objc/README.md
@@ -74,10 +74,10 @@ Build the `TensorFlowLite` Objective-C library target:
 bazel build tensorflow/lite/objc:TensorFlowLite
 ```
 
-Build the `Tests` target:
+Build the `tests` target:
 
 ```shell
-bazel test tensorflow/lite/objc:Tests
+bazel test tensorflow/lite/objc:tests
 ```
 
 #### Generate the Xcode project using Tulsi
diff --git a/tensorflow/lite/objc/TensorFlowLite.tulsiproj/Configs/TensorFlowLite.tulsigen b/tensorflow/lite/objc/TensorFlowLite.tulsiproj/Configs/TensorFlowLite.tulsigen
index bf41ce09b4c..9d396a47e70 100644
--- a/tensorflow/lite/objc/TensorFlowLite.tulsiproj/Configs/TensorFlowLite.tulsigen
+++ b/tensorflow/lite/objc/TensorFlowLite.tulsiproj/Configs/TensorFlowLite.tulsigen
@@ -16,7 +16,7 @@
   "buildTargets" : [
     "//tensorflow/lite/objc:TensorFlowLite",
     "//tensorflow/lite/objc:TestApp",
-    "//tensorflow/lite/objc:Tests"
+    "//tensorflow/lite/objc:tests"
   ],
   "projectName" : "TensorFlowLite",
   "optionSet" : {