From c96b9eb7503ba6ac12f50bc5ae69395510040362 Mon Sep 17 00:00:00 2001
From: Jan Tattermusch <jtattermusch@google.com>
Date: Fri, 18 Sep 2015 16:01:21 -0700
Subject: [PATCH] correct behavior for travis flag

---
 tools/run_tests/run_tests.py | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index 4774a31705..1491b1c41c 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -462,13 +462,14 @@ argp.add_argument('-x', '--xml_report', default=None, type=str,
         help='Generates a JUnit-compatible XML report')
 args = argp.parse_args()
 
-if args.use_docker and not args.travis:
-  print 'Seen --use_docker flag, will run tests under docker.'
-  print
-  print 'IMPORTANT: The changes you are testing need to be locally committed'
-  print 'because only the committed changes in the current branch will be'
-  print 'copied to the docker environment.'
-  time.sleep(5)
+if args.use_docker:
+  if not args.travis:
+    print 'Seen --use_docker flag, will run tests under docker.'
+    print
+    print 'IMPORTANT: The changes you are testing need to be locally committed'
+    print 'because only the committed changes in the current branch will be'
+    print 'copied to the docker environment.'
+    time.sleep(5)
 
   child_argv = [ arg for arg in sys.argv if not arg == '--use_docker' ]
   run_tests_cmd = 'tools/run_tests/run_tests.py %s' % " ".join(child_argv[1:])
-- 
GitLab