Skip Menu |

This queue is for tickets about the Test-Nightly CPAN distribution.

Report information
The Basics
Id: 18141
Status: new
Priority: 0/
Queue: Test-Nightly

People
Owner: Nobody in particular
Requestors: BADGERSRC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.03
Fixed in: (no value)



Subject: fails if base_directories passed relative paths
Test::Nightly does not like being passed a relative path in base_directories. use strict; use warnings; use Test::Nightly; use constant EXPORT_BASE => "export/nightly"; my $nightly = Test::Nightly->new( { base_directories => [EXPORT_BASE], build_script => 'Build.PL', debug => 1, run_tests => { build_type => 'build', }, install_module => "none", generate_report => { report_output => 'test_report.html', }, } ); mark:~/devarea/justice/utils/development$ ll export/nightly total 12 drwxr-xr-x 5 mark cti 4096 Mar 13 13:50 GE-Justice-TT-Plugins/ drwxr-xr-x 5 mark cti 4096 Mar 13 13:50 GE-Justice-Timer/ <snip> Test::Nightly::Test::run(): Unable to change directory to: export/nightly/GE-Justice-DataSources/, skipping No such file or directory at /home/perl/share/perl/5.8.8/Test/Nightly.pm line 184 (Test::Nightly::Test has been modified to show $! after the failed chdir). Test::Nightly::Test could be changed so that it chdirs back to its starting directory after each module is tested, or the documentation could be modified so that it makes it clear that relative paths are forbidden (if the latter then relative paths should probably be forbidden by the code itself). regards, Mark