Project

General

Profile

Bug #705

mercury xpath testing script failing on Hudson

Added by Dave Vieglais over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
d1_indexer
Target version:
Start date:
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

The script

cn-buildout/dataone-cn-mercury/var/mercury/testing/test_xpath_v_sampleData.pl

fails to run on Hudson apparently due to some path problems with the arrangement of modules in the .lib folder

+ cd /home/hudson/work/jobs/cn-buildout/workspace/cn-buildout/dataone-cn-mercury/var/mercury/testing/
+ pwd
+ export PERL5LIB=:/home/hudson/work/jobs/cn-buildout/workspace/cn-buildout/dataone-cn-mercury/var/mercury/testing/lib
+ perl ./test_xpath_v_sampleData.pl
+ perl ./tap-to-junit-xml.pl --puretap
Can't locate XML/Parser.pm in @INC (@INC contains: ./lib /home/hudson/work/jobs/cn-buildout/workspace/cn-buildout/dataone-cn-mercury/var/mercury/testing/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at lib/XML/XPath/XMLParser.pm line 7.
BEGIN failed--compilation aborted at lib/XML/XPath/XMLParser.pm line 7.
Compilation failed in require at lib/XML/XPath.pm line 13.
BEGIN failed--compilation aborted at lib/XML/XPath.pm line 13.
Compilation failed in require at ./test_xpath_v_sampleData.pl line 14.
BEGIN failed--compilation aborted at ./test_xpath_v_sampleData.pl line 14.
Recording test results
Finished: FAILURE

History

#1 Updated by Rob Nahf over 14 years ago

the relative paths don't seem to work for the XML modules - they have a different calling mechanism (require instead of use), so either need to modify the modules (add a redirect-type of statement in them), or simply install on dev-testing.

#2 Updated by Rob Nahf over 14 years ago

Moved the perl modules out of svn (except for one), and installed them via apt-get on dev-testing. (Except one small one where there wasn't a package. General cleanup of modules at the same time.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)