aboutsummaryrefslogtreecommitdiffstats
path: root/t/100-python.t
diff options
context:
space:
mode:
authorTeddy Wing2015-09-27 13:16:22 -0400
committerTeddy Wing2015-09-27 13:16:22 -0400
commit7096e275b8d2d78ecfbb8d53f22086fd0e8d0605 (patch)
tree1e2b6e1bbea9ac79491994fddc270c29e2ca877c /t/100-python.t
parenta0541f78062430b8f0f48e020e7cea586e8b2f58 (diff)
downloadgit-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.
Diffstat (limited to 't/100-python.t')
-rw-r--r--t/100-python.t2
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