aboutsummaryrefslogtreecommitdiffstats
path: root/snekbox.py
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-06-03 12:32:42 +0200
committerGravatar Christopher Baklid <[email protected]>2018-06-03 12:32:42 +0200
commitc9c01602755505a2f6572ec2455c48f3bf683968 (patch)
treecd5e8bc53931c6f85238a6f924c938d09935e6f5 /snekbox.py
parentsudo all the things (diff)
trying changing to root in travis before build runs
Diffstat (limited to 'snekbox.py')
-rw-r--r--snekbox.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/snekbox.py b/snekbox.py
index ceb897f..b3ee27e 100644
--- a/snekbox.py
+++ b/snekbox.py
@@ -57,13 +57,19 @@ class Snekbox(object):
stdout, stderr = proc.communicate()
if proc.returncode == 0:
output = stdout
+
elif proc.returncode == 1:
try:
output = stderr.split('\n')[-2]
except IndexError:
output = ''
+
elif proc.returncode == 109:
output = 'timed out or memory limit exceeded'
+
+ elif proc.returncode == 255:
+ output = 'permission denied (root required)'
+
else:
log.debug(stderr)
output = 'unknown error'