aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools
diff options
context:
space:
mode:
authorGravatar Mark Daoust <markdaoust@google.com>2018-10-01 14:38:57 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-01 14:43:29 -0700
commit5e3c2255b7f90146a895cd20267de699fbb15c27 (patch)
treec4c5714c31eac938139bf4dbb5f4713c299b8a4f /tensorflow/tools
parent094e1953b7df0bbb9bd4d0e3329b3b4611edf984 (diff)
internal change
PiperOrigin-RevId: 215282721
Diffstat (limited to 'tensorflow/tools')
-rw-r--r--tensorflow/tools/docs/BUILD1
-rw-r--r--tensorflow/tools/docs/build_docs_test.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/tools/docs/BUILD b/tensorflow/tools/docs/BUILD
index 2a858b4fd6..1a53f24177 100644
--- a/tensorflow/tools/docs/BUILD
+++ b/tensorflow/tools/docs/BUILD
@@ -127,7 +127,6 @@ py_test(
name = "build_docs_test",
size = "small",
srcs = ["build_docs_test.py"],
- data = ["//tensorflow/docs_src"],
srcs_version = "PY2AND3",
tags = [
# No reason to run sanitizers or fastbuild for this test.
diff --git a/tensorflow/tools/docs/build_docs_test.py b/tensorflow/tools/docs/build_docs_test.py
index 0cbf8b478f..4d3bedda2d 100644
--- a/tensorflow/tools/docs/build_docs_test.py
+++ b/tensorflow/tools/docs/build_docs_test.py
@@ -30,9 +30,11 @@ from tensorflow.tools.docs import generate_lib
class Flags(object):
resource_root = resource_loader.get_root_dir_with_all_resources()
- src_dir = os.path.join(resource_root, 'tensorflow/docs_src')
+ src_dir = os.path.join(googletest.GetTempDir(), 'input')
+ os.mkdir(src_dir)
base_dir = os.path.join(resource_root, 'tensorflow/')
- output_dir = googletest.GetTempDir()
+ output_dir = os.path.join(googletest.GetTempDir(), 'output')
+ os.mkdir(output_dir)
class BuildDocsTest(googletest.TestCase):