Skip Menu |
 

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 113182
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

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

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



Subject: cannot use some values for environment variables
Download (untitled) / with headers
text/plain 517b
I want to skip only some tests for module when building Strawberry, so I tried using TAP::Harness::Restricted: { module=>'IO::Stringy', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/IO_InnerFile.t' } } But they were not used by TAP::Harness, probably because resolve_name() is applied to values when setting environment variables and if it is not URL, it uses canonpath(). canonpath('t/IO_InnerFile.t') is 't\IO_InnerFile.t', which does not match. -- Alexandr Ciornii, http://chorny.net
Download (untitled) / with headers
text/plain 669b
On Sat Mar 19 10:31:49 2016, CHORNY wrote: Show quoted text
> I want to skip only some tests for module when building Strawberry, so > I tried using TAP::Harness::Restricted: > { module=>'IO::Stringy', env=>{ > 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', > 'HARNESS_SKIP'=>'t/IO_InnerFile.t' } } > But they were not used by TAP::Harness, probably because > resolve_name() is applied to values when setting environment variables > and if it is not URL, it uses canonpath(). > canonpath('t/IO_InnerFile.t') is 't\IO_InnerFile.t', which does not > match.
Added special case for HARNESS_SKIP in commit 62ce3d1ec05800df6be85501767a5ebc2469ffe9 -- Alexandr Ciornii, http://chorny.net


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.