Test suite: ignoring backups from vi (files ending with a ~)

On my laptop, this test was failing because some scripts had a conflict marker in a backup ... of a conflict I just fixed!
ignoring any file ending with a ~
(cherry picked from commit 13f29dd7f3)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Paul Poulain 2011-12-07 15:17:54 +01:00 committed by Chris Nighswonger
parent 26d79ec4f2
commit 03f6e33c4b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ find({
wanted => sub {
my $file = $_;
return if $file =~ /\.(ico|jpg|gif|ogg|pdf|png|psd|swf|zip)$/;
return if $file =~ /\.(ico|jpg|gif|ogg|pdf|png|psd|swf|zip|.*\~)$/;
return unless -f $file;
my @name_parts = File::Spec->splitpath($file);