Builds don't have so much contingent setup. We don't track the
runvars; we just rely on the share-* hostflag set in the job.
But selecthost() is going to automatically enable runvar access
control for shared/reused hosts. So, provide a way to disable that.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
sha256file host_shared_mark_ready
gitcache_setup
- @accessible_runvar_pats
+ @accessible_runvar_pats sharing_for_build
);
%EXPORT_TAGS = ( );
'home-osstest-gitconfig');
}
+sub sharing_for_build () { @accessible_runvar_pats = qw(*); };
+
sub runvar_access_restrict () {
# restricts runvars to those in @accessible_runvar_pats
return if "@accessible_runvar_pats" eq "*";
}
}
+if ($build) { sharing_for_build(); }
+
our ($whhost) = @ARGV;
$whhost ||= 'host';
our $ho= selecthost($whhost);
use Osstest::Debian;
tsreadconfig();
+sharing_for_build();
our ($whhost) = @ARGV;
$whhost ||= 'host';