diff options
author | Mike Frysinger <vapier@chromium.org> | 2013-11-04 18:27:29 -0500 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-11-05 22:45:53 +0000 |
commit | 21ae9d91a7cc218aa25bf191478a87ccab0682cd (patch) | |
tree | 2c27f5762ee97cb37a6b5b226842286cda525963 | |
parent | 23412baa8231c06b80d784fe262dfa243f0a6f15 (diff) | |
download | chromite-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/.testignore | 0 | ||||
-rwxr-xr-x | buildbot/run_tests | 8 | ||||
-rw-r--r-- | third_party/.testignore | 0 |
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 |