[Rt-commit] rt branch, 4.4/devel-mode-in-compilation-error-tests, created. rt-4.4.2-74-g52ab8c040
? sunnavy
sunnavy at bestpractical.com
Tue Feb 20 08:54:31 EST 2018
The branch, 4.4/devel-mode-in-compilation-error-tests has been created
at 52ab8c0408095341918b946ae997d0c50de0122a (commit)
- Log -----------------------------------------------------------------
commit 52ab8c0408095341918b946ae997d0c50de0122a
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Feb 20 21:23:27 2018 +0800
make sure DevelMode is on to catch compilation errors.
Tests search "raw error" to check if there are compilation errors.
Since pages render "raw error..." only on DevelMode, without this, tests
could pass even there are compilation errors.
diff --git a/t/web/compilation_errors.t b/t/web/compilation_errors.t
index 966470912..eba9b6bbb 100644
--- a/t/web/compilation_errors.t
+++ b/t/web/compilation_errors.t
@@ -5,6 +5,7 @@ use File::Find;
use HTTP::Status qw();
BEGIN {
+ $ENV{RT_TEST_DEVEL} ||= 1;
sub wanted {
-f && /\.html$/ && $_ !~ /Logout.html$/ && $File::Find::dir !~ /RichText/;
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list