Skip Menu |

This queue is for tickets about the Git-Bunch CPAN distribution.

Report information
The Basics
Id: 119318
Status: resolved
Priority: 0/
Queue: Git-Bunch

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

Bug Information
Severity: (no value)
Broken in: 0.59
Fixed in: (no value)



Subject: Can't exec "rsync-new2old": No such file or directory
The basics test may fail like this: # git version = git version 2.1.4 Can't exec "rsync-new2old": No such file or directory at /opt/perl-5.12.5/lib/site_perl/5.12.5/IPC/System/Options.pm line 168. Can't exec "rsync-new2old": No such file or directory at /opt/perl-5.12.5/lib/site_perl/5.12.5/IPC/System/Options.pm line 168. Couldn't open sync/1/file1: No such file or directory at t/01-basics.t line 187. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 25 just after 12. t/01-basics.t ............ Dubious, test returned 25 (wstat 6400, 0x1900) All 12 subtests passed I think there are two possible situations to make this happen: - The module is just tested without installing anything --- in this case rsync-new2old old resides in blib/scripts of App-rsync-new2old, which is not in $ENV{PATH}. - rsync-new2old is installed, but bin of the currently used perl is not in $ENV{PATH}. To fix this, one has to add $Config{scriptdir} or so to $ENV{PATH} in the using script.
On Tue, 20 Dec 2016 08:14:46 GMT, SREZIC wrote: Show quoted text
> The basics test may fail like this: > > # git version = git version 2.1.4 > Can't exec "rsync-new2old": No such file or directory at /opt/perl- > 5.12.5/lib/site_perl/5.12.5/IPC/System/Options.pm line 168. > Can't exec "rsync-new2old": No such file or directory at /opt/perl- > 5.12.5/lib/site_perl/5.12.5/IPC/System/Options.pm line 168. > Couldn't open sync/1/file1: No such file or directory at t/01-basics.t > line 187. > # Tests were run but no plan was declared and done_testing() was not > seen. > # Looks like your test exited with 25 just after 12. > t/01-basics.t ............ > Dubious, test returned 25 (wstat 6400, 0x1900) > All 12 subtests passed > > > I think there are two possible situations to make this happen: > > - The module is just tested without installing anything --- in this > case rsync-new2old old resides in blib/scripts of App-rsync-new2old, > which is not in $ENV{PATH}. > > - rsync-new2old is installed, but bin of the currently used perl is > not in $ENV{PATH}. To fix this, one has to add $Config{scriptdir} or > so to $ENV{PATH} in the using script.
Since rsync-new2old is considered a prerequisite now, like rsync, mv, cp, I'm going to do the easiest and skip the tests when the script is not in PATH.