diff options
author | Yifei Feng <yifeif@google.com> | 2018-04-30 15:56:26 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-30 15:58:51 -0700 |
commit | 30fcdecc05e6b25ab8d451997904e40b2a76acd4 (patch) | |
tree | fa3dbd9ef9578d6343a06d6cac161c77b9265cf1 /tensorflow/tools/pip_package/pip_smoke_test.py | |
parent | 286d61b246280b3a8dea39ac2f7d48b7cdbd48dc (diff) |
Improve error message for pip_smoke_test.
PiperOrigin-RevId: 194859591
Diffstat (limited to 'tensorflow/tools/pip_package/pip_smoke_test.py')
-rw-r--r-- | tensorflow/tools/pip_package/pip_smoke_test.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tensorflow/tools/pip_package/pip_smoke_test.py b/tensorflow/tools/pip_package/pip_smoke_test.py index 1b692104f1..b23dde2019 100644 --- a/tensorflow/tools/pip_package/pip_smoke_test.py +++ b/tensorflow/tools/pip_package/pip_smoke_test.py @@ -147,10 +147,11 @@ def main(): affected_tests_list = affected_tests.split("\n")[:-2] print("\n".join(affected_tests_list)) - raise RuntimeError("""One or more dependencies are not in the pip package. -Please either blacklist the dependencies in -//tensorflow/tools/pip_package/pip_smoke_test.py -or add them to //tensorflow/tools/pip_package/BUILD.""") + raise RuntimeError(""" + One or more added test dependencies are not in the pip package. +If these test dependencies need to be in TensorFlow pip package, please add them to //tensorflow/tools/pip_package/BUILD. +Else either blacklist the dependencies in //tensorflow/tools/pip_package/pip_smoke_test.py +or add no_pip tag to the test.""") else: print("TEST PASSED") |