summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Duraffort <remi.duraffort@linaro.org>2016-10-21 12:45:26 (GMT)
committerRémi Duraffort <remi.duraffort@linaro.org>2016-10-21 12:47:45 (GMT)
commitc434b12ede693eb080bb9e447b23f97113181263 (patch)
tree5fa7cbce13a9fc38677faf41345bbcbf5a557705
parent4e71edec1ef30d81719fd88def88d37ad13ecc3b (diff)
downloadlava-dispatcher-c434b12ede693eb080bb9e447b23f97113181263.tar.gz
lava-dispatcher-c434b12ede693eb080bb9e447b23f97113181263.tar.xz
slave: do not send None as error code
The master is expecting an integer. Change-Id: I1673f65e47e969aef5c772873e1100d9a9851fe5
-rwxr-xr-xlava/dispatcher/lava-dispatcher-slave2
1 files changed, 1 insertions, 1 deletions
diff --git a/lava/dispatcher/lava-dispatcher-slave b/lava/dispatcher/lava-dispatcher-slave
index fbd73c7..010b80f 100755
--- a/lava/dispatcher/lava-dispatcher-slave
+++ b/lava/dispatcher/lava-dispatcher-slave
@@ -242,7 +242,7 @@ def send_multipart_u(sock, data):
def send_end(sock, job_id, job):
err = job.errors()
- if job.proc is not None:
+ if job.proc is not None and job.proc.returncode is not None:
job_status = job.proc.returncode
elif err == '':
job_status = 0