Skip to content

Commit

Permalink
Restore SLIGHTLY-RESTRICTED setting
Browse files Browse the repository at this point in the history
Guess what, we kinda lost it during the transition to Perl 6 bots.

In fact, now I see that not all of the things were restricted. Whoops!

Hopefully we will be able to get rid of it soon. See issue #25.
  • Loading branch information
AlexDaniel committed Aug 25, 2016
1 parent 687c840 commit 326c44a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Whateverable.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ method run-snippet($full-commit-hash, $file, :$timeout = $!timeout) {
if {LEGACY-BUILDS-LOCATION}/$full-commit-hash/bin/perl6.IO !~~ :e {
return commit exists, but a perl6 executable could not be built for it, -1, -1;
}
return self.get-output({LEGACY-BUILDS-LOCATION}/$full-commit-hash/bin/perl6, $file, :$!stdin, :$timeout);
return self.get-output({LEGACY-BUILDS-LOCATION}/$full-commit-hash/bin/perl6,
--setting=RESTRICTED, --, $file, :$!stdin, :$timeout);
}

# lock on the destination directory to make
Expand All @@ -131,7 +132,8 @@ method run-snippet($full-commit-hash, $file, :$timeout = $!timeout) {
if {BUILDS-LOCATION}/$full-commit-hash/bin/perl6.IO !~~ :e {
@out = Commit exists, but a perl6 executable could not be built for it, -1, -1;
} else {
@out = self.get-output({BUILDS-LOCATION}/$full-commit-hash/bin/perl6, $file, :$!stdin, :$timeout);
@out = self.get-output({BUILDS-LOCATION}/$full-commit-hash/bin/perl6,
--setting=RESTRICTED, --, $file, :$!stdin, :$timeout);
}
rmtree {BUILDS-LOCATION}/$full-commit-hash;
return @out
Expand Down

0 comments on commit 326c44a

Please sign in to comment.