From c9c01602755505a2f6572ec2455c48f3bf683968 Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Sun, 3 Jun 2018 12:32:42 +0200 Subject: trying changing to root in travis before build runs --- snekbox.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'snekbox.py') 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' -- cgit v1.2.3