in reply to Re: Running specific test files with sudo
in thread Running specific test files with sudo

Thanks Corion.

I do already use the skip feature of Test::More in certain cases. Below is an example so that if a user isn't on a Pi, certain test files will skip. This prevents needless test failures on the CPAN:

if (! $ENV{PI_BOARD}){ plan skip_all => "not on a pi board (PI_BOARD env var not set)\n"; }

I will give using exec a go.