[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.9-75-g2d00627
Alex Vandiver
alexmv at bestpractical.com
Thu Jan 22 17:31:32 EST 2015
The branch, 4.2-trunk has been updated
via 2d00627e3b932e4684706233cf52103ae0d72956 (commit)
from 13bf95b13c36cd91dc588e98d575cab570d0004a (commit)
Summary of changes:
t/web/query_log.t | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 2d00627e3b932e4684706233cf52103ae0d72956
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu Jan 22 16:32:36 2015 -0500
Don't hardcode share/html in tests
Different distributions may install to different locations (such as
/usr/share/request-tracker4/html for Debian) which do not contain
share/html in them; this causes tests to fail, as the installed path
(not the source path) is used when running tests.
Simply search for /autohandler, which is all that is relevant for this test.
diff --git a/t/web/query_log.t b/t/web/query_log.t
index 89cca2d..cfb4d81 100644
--- a/t/web/query_log.t
+++ b/t/web/query_log.t
@@ -14,6 +14,5 @@ $root->LoadByEmail('root at localhost');
$m->get_ok("/Admin/Tools/Queries.html");
$m->text_contains("/index.html", "we include info about a page we hit while logging in");
$m->text_contains("Stack:", "stack traces");
-$m->text_like(qr{share/html/autohandler:\d+}, "stack trace includes mason components");
+$m->text_like(qr{/autohandler:\d+}, "stack trace includes mason components");
$m->text_contains("SELECT * FROM Principals WHERE id = '".$root->id."'", "we interpolate bind params");
-
-----------------------------------------------------------------------
More information about the rt-commit
mailing list