diff options
author | 2018-06-03 12:32:42 +0200 | |
---|---|---|
committer | 2018-06-03 12:32:42 +0200 | |
commit | c9c01602755505a2f6572ec2455c48f3bf683968 (patch) | |
tree | cd5e8bc53931c6f85238a6f924c938d09935e6f5 /snekbox.py | |
parent | sudo all the things (diff) |
trying changing to root in travis before build runs
Diffstat (limited to 'snekbox.py')
-rw-r--r-- | snekbox.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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' |