Skip to content

Commit 326c44a

Browse files
committed
Restore SLIGHTLY-RESTRICTED setting
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.
1 parent 687c840 commit 326c44a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Whateverable.pm6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ method run-snippet($full-commit-hash, $file, :$timeout = $!timeout) {
111111
if {LEGACY-BUILDS-LOCATION}/$full-commit-hash/bin/perl6.IO !~~ :e {
112112
return commit exists, but a perl6 executable could not be built for it, -1, -1;
113113
}
114-
return self.get-output({LEGACY-BUILDS-LOCATION}/$full-commit-hash/bin/perl6, $file, :$!stdin, :$timeout);
114+
return self.get-output({LEGACY-BUILDS-LOCATION}/$full-commit-hash/bin/perl6,
115+
--setting=RESTRICTED, --, $file, :$!stdin, :$timeout);
115116
}
116117

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

0 commit comments

Comments
 (0)