wrong path name for all.tests

kyle_mathews - June 18, 2008 - 17:10
Project:Coder
Version:6.x-1.x-dev
Component:Coder Format
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I ran into this problem when trying to run simpletests with coder installed. I got this error:

<?php
Fatal error
: require_once() [function.require]: Failed opening required 'Text/Diff.php' (include_path='.:/usr/share/php:/usr/share/pear:sites/all/modules/coder/scripts/coder_format/tests') in /var/www/test_memetracker/sites/all/modules/coder/scripts/coder_format/tests/all.test on line 6
?>

I eventually found that line 4 in all.tests had the wrong path. It's missing the second tests directory. This is what I changed things so it works.

<?php
set_include_path
(get_include_path() . PATH_SEPARATOR . drupal_get_path('module', 'coder') .'/scripts/coder_format/tests/tests');
?>

#1

sun - October 31, 2008 - 23:12
Component:Code» Coder Format
Status:active» needs review

well, actually, the README.txt was wrong.

Attached patch should fix this issue.

AttachmentSize
coder-DRUPAL-6--1.tests_.patch 693 bytes

#2

sun - December 4, 2008 - 02:43
Status:needs review» fixed

#3

System Message - December 18, 2008 - 02:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.