diff options
| author | Teddy Wing | 2015-09-27 13:16:22 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-09-27 13:16:22 -0400 |
| commit | 7096e275b8d2d78ecfbb8d53f22086fd0e8d0605 (patch) | |
| tree | 1e2b6e1bbea9ac79491994fddc270c29e2ca877c | |
| parent | a0541f78062430b8f0f48e020e7cea586e8b2f58 (diff) | |
| download | git-hook-pre-commit-python-javascript-syntax-linter-7096e275b8d2d78ecfbb8d53f22086fd0e8d0605.tar.bz2 | |
t/100-python.t: Restrict file check to Python files
One of our tests confirms that our 2 Python files are in the repo
directory. Since we're also adding JavaScript files to this directory,
we need to restrict the test to Python files in order to match them
correctly. In this case since we're only testing Python files we don't
really need to worry about the JS files' existence.
| -rw-r--r-- | t/100-python.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/100-python.t b/t/100-python.t index 8e9b403..09266bd 100644 --- a/t/100-python.t +++ b/t/100-python.t @@ -10,7 +10,7 @@ chdir 't/git-repo/' or die $!; system('cp ../*.py .'); ok !$?; -my $output = `ls -1`; +my $output = `ls -1 | grep .*\.py`; ok $output eq 'test.py uncommitted.py |
