tests/examples.sh: skip env. check for filtered tests
authorJames Zern <jzern@google.com>
Thu, 18 Dec 2014 03:02:00 +0000 (19:02 -0800)
committerJames Zern <jzern@google.com>
Thu, 18 Dec 2014 03:02:00 +0000 (19:02 -0800)
Change-Id: Ide670b00ae3ecd9e18f394905341bf793349f247

test/tools_common.sh

index 4300738..8e8d785 100755 (executable)
@@ -261,6 +261,9 @@ run_tests() {
     return
   fi
 
+  # Don't bother with the environment tests if everything else was disabled.
+  [ -z "${tests_to_filter}" ] && return
+
   # Combine environment and actual tests.
   local tests_to_run="${env_tests} ${tests_to_filter}"