Skip Menu |

This queue is for tickets about the App-KGB CPAN distribution.

Report information
The Basics
Id: 108400
Status: patched
Priority: 0/
Queue: App-KGB

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

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



Subject: System perl used in tests
The t/5?-client*.t tests seem to use the system perl, not the perl currently running the test suite. This leads to test failures and possible hanging processes: ... # trying port 5392 Can't locate POE.pm in @INC (@INC contains: /tmpfs/.cpan-build/2015110306/App-KGB-1.33-92CFvR/blib/lib /tmpfs/.cpan-build/2015110306/App-KGB-1.33-92CFvR/blib/arch privinc /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at script/kgb-bot line 402. BEGIN failed--compilation aborted at script/kgb-bot line 402. t/52-client-git.t .............. ... Probably it's best to use $^X here, so instead of tee -a "$dir/reflog" | PERL5LIB=$R/lib $R/script/kgb-client --conf $ccf >> $hook_log 2>&1 it's better to use tee -a "$dir/reflog" | PERL5LIB=$R/lib $^X $R/script/kgb-client --conf $ccf >> $hook_log 2>&1 (untested). Alternatively, you can use the script version installed in blib/script, as this one has the corrected shebang (though this does not work under Windows).
На 03 ноем. 2015, вт 09:49:25, SREZIC написа: Show quoted text
> The t/5?-client*.t tests seem to use the system perl, not the perl > currently running the test suite. This leads to test failures and > possible hanging processes: > > ... > # trying port 5392 > Can't locate POE.pm in @INC (@INC contains: /tmpfs/.cpan- > build/2015110306/App-KGB-1.33-92CFvR/blib/lib /tmpfs/.cpan- > build/2015110306/App-KGB-1.33-92CFvR/blib/arch privinc /etc/perl > /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 > /usr/local/lib/site_perl .) at script/kgb-bot line 402. > BEGIN failed--compilation aborted at script/kgb-bot line 402. > t/52-client-git.t .............. > ... > > Probably it's best to use $^X here, so instead of > > tee -a "$dir/reflog" | PERL5LIB=$R/lib $R/script/kgb-client --conf > $ccf >> $hook_log 2>&1 > > it's better to use > > tee -a "$dir/reflog" | PERL5LIB=$R/lib $^X $R/script/kgb-client --conf > $ccf >> $hook_log 2>&1 > > (untested). Alternatively, you can use the script version installed in > blib/script, as this one has the corrected shebang (though this does > not work under Windows).
Thanks, fixed in Git. I inserted "$^X -- " in all the tests that run similar constructs.