summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2013-11-04 18:27:29 -0500
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-05 22:45:53 +0000
commit21ae9d91a7cc218aa25bf191478a87ccab0682cd (patch)
tree2c27f5762ee97cb37a6b5b226842286cda525963
parent23412baa8231c06b80d784fe262dfa243f0a6f15 (diff)
downloadchromite-21ae9d91a7cc218aa25bf191478a87ccab0682cd.tar.gz
run_tests: support skipping of dirs
The google appengine sdk includes some unittests. Don't run them automatically if we have it unpacked. BUG=None TEST=`./buildbot/run_tests` skips all the google appengine stuff but runs same as before Change-Id: I1071a5442231683b233b810d6ae8abbff2fc78b3 Reviewed-on: https://chromium-review.googlesource.com/175377 Reviewed-by: Matt Tennant <mtennant@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
-rw-r--r--appengine/.testignore0
-rwxr-xr-xbuildbot/run_tests8
-rw-r--r--third_party/.testignore0
3 files changed, 7 insertions, 1 deletions
diff --git a/appengine/.testignore b/appengine/.testignore
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/appengine/.testignore
diff --git a/buildbot/run_tests b/buildbot/run_tests
index 3b0f42292..ff6a229c7 100755
--- a/buildbot/run_tests
+++ b/buildbot/run_tests
@@ -120,8 +120,14 @@ fi
if [[ $# -eq 0 ]]; then
# List all unit test scripts that match the given pattern.
+ prune_tests=(
+ $(find "${CHROMITE_PATH}" -name .testignore \
+ -printf '-path %h -prune -o ')
+ )
all_tests=(
- $(find "${CHROMITE_PATH}" -name '*_unittest.py' -printf '%P ')
+ $(find "${CHROMITE_PATH}" \
+ ${prune_tests[*]} \
+ -name '*_unittest.py' -printf '%P ')
)
set -- "${all_tests[@]}"
fi
diff --git a/third_party/.testignore b/third_party/.testignore
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/third_party/.testignore