[Rt-commit] rt branch, 4.2/ignore-vim-swap-files-in-tests, created. rt-4.2.6-36-g1dd472e
Kevin Falcone
falcone at bestpractical.com
Wed Aug 13 16:07:03 EDT 2014
The branch, 4.2/ignore-vim-swap-files-in-tests has been created
at 1dd472e662c58a6099f08a91e757c85320ddf756 (commit)
- Log -----------------------------------------------------------------
commit 1dd472e662c58a6099f08a91e757c85320ddf756
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Aug 13 14:48:14 2014 -0400
Ignore vim swap files when testing
mason-syntax already ignored swp files, but would try to compile swo
files. t/web/helper-http-cache-headers.t made no attempt to ignore
anything, so if you're hacking on a Helper this test will fail
spectacularly.
diff --git a/t/00-mason-syntax.t b/t/00-mason-syntax.t
index 0f77876..70dd7e4 100644
--- a/t/00-mason-syntax.t
+++ b/t/00-mason-syntax.t
@@ -9,7 +9,7 @@ find( {
no_chdir => 1,
wanted => sub {
return if /(?:\.(?:jpe?g|png|gif|rej)|\~)$/i;
- return if m{/\.[^/]+\.swp$}; # vim swap files
+ return if m{/\.[^/]+\.sw[op]$}; # vim swap files
return unless -f $_;
local ($@);
ok( eval { compile_file($_) }, "Compiled $File::Find::name ok: $@");
diff --git a/t/web/helpers-http-cache-headers.t b/t/web/helpers-http-cache-headers.t
index c32782c..dd3640f 100644
--- a/t/web/helpers-http-cache-headers.t
+++ b/t/web/helpers-http-cache-headers.t
@@ -31,6 +31,7 @@ my @endpoints = (
find({
wanted => sub {
if ( -f $_ && $_ !~ m|autohandler$| ) {
+ return if m{/\.[^/]+\.sw[op]$}; # vim swap files
( my $endpoint = $_ ) =~ s|^$docroot||;
push @endpoints, $endpoint;
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list