From 7096e275b8d2d78ecfbb8d53f22086fd0e8d0605 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 27 Sep 2015 13:16:22 -0400 Subject: 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. --- t/100-python.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3