Skip to content

Commit

Permalink
Fix test_git_hooks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Aug 20, 2019
1 parent 41c9014 commit 0ce8cf7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build-support/bin/BUILD
Expand Up @@ -6,6 +6,14 @@ files(
sources = globs('*.sh'),
)

# We include this entry, even though the scripts are already covered by individual `python_binary`
# targets, to ensure that tests are able to treat these files as loose source files, i.e. to avoid
# stripping the source root from the files.
files(
name = 'python_scripts',
sources = globs('*.py'),
)

python_binary(
name = 'check_banned_imports',
source = 'check_banned_imports.py',
Expand Down
2 changes: 1 addition & 1 deletion tests/python/pants_test/repo_scripts/BUILD
Expand Up @@ -8,6 +8,6 @@ python_tests(
'src/python/pants/util:dirutil',
'tests/python/pants_test/testutils:git_util',
'build-support/bin:bash_scripts',
'build-support/bin:check_header',
'build-support/bin:python_scripts',
]
)

0 comments on commit 0ce8cf7

Please sign in to comment.