[test] [bug-fix] t/Util.p path should be preserved in run_as_root()
@@ -59,7 +59,7 @@ sub bindir {
sub run_as_root {
return if $< == 0;
- exec qw(sudo -E env PERL5LIB=.), $^X, $0;
+ exec qw(sudo -E env PERL5LIB=.), "PATH=$ENV{PATH}", $^X, $0;
die "failed to invoke $0 using sudo:$!";
}
