diff options
author | blundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 14:22:30 +0000 |
---|---|---|
committer | blundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 14:22:30 +0000 |
commit | 6fdd63f6e71a58e84fa8f5d265df1ee96260f45f (patch) | |
tree | c9f6f672d6712ae5882280cd54eb8481c0454a83 /build/copy_test_data_ios.py | |
parent | dd4757a4db84f38a8d33aee1db14f7d46a87d98f (diff) | |
download | chromium_src-6fdd63f6e71a58e84fa8f5d265df1ee96260f45f.zip chromium_src-6fdd63f6e71a58e84fa8f5d265df1ee96260f45f.tar.gz chromium_src-6fdd63f6e71a58e84fa8f5d265df1ee96260f45f.tar.bz2 |
Change copy_test_data_ios.py to enable copying hidden files.
Loosen the dotfile test in this script as some tests can use hidden files.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11312084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/copy_test_data_ios.py')
-rwxr-xr-x | build/copy_test_data_ios.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build/copy_test_data_ios.py b/build/copy_test_data_ios.py index 5130735..d785f26 100755 --- a/build/copy_test_data_ios.py +++ b/build/copy_test_data_ios.py @@ -16,10 +16,9 @@ class WrongNumberOfArgumentsException(Exception): def ListFilesForPath(path): """Returns a list of all the files under a given path.""" output = [] - # Ignore dotfiles and dot directories. - # TODO(rohitrao): This will fail to exclude cases where the initial argument - # is a relative path that starts with a dot. - if os.path.basename(path).startswith('.'): + # Ignore revision control metadata directories. + if (os.path.basename(path).startswith('.git') or + os.path.basename(path).startswith('.svn')): return output # Files get returned without modification. |