From 7aaf46c22b09c76bb096b4e24b99f01ee978fcd9 Mon Sep 17 00:00:00 2001 From: Ulas Kozat Date: Fri, 1 Jul 2016 12:21:19 -0700 Subject: return FAILED status when no file is generated for distribution add tests/logdata/ to make CI happy Change-Id: I01e0b9feebd5dee2175999e78885abf7124a8410 Signed-off-by: Ulas Kozat --- DominoServer.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'DominoServer.py') diff --git a/DominoServer.py b/DominoServer.py index 95fbe53..5c5fbd4 100755 --- a/DominoServer.py +++ b/DominoServer.py @@ -317,6 +317,12 @@ class CommunicationHandler: logging.error('Error: %s', sys.exc_info()[0]) pub_r.responseCode = FAILED + # Check if any file is generated for distribution, if not + # return FAILED as responseCode, we should also send description for + # reason + if len(file_paths) == 0: + pub_r.responseCode = FAILED + return pub_r #Query from Domino Client is received -- cgit 1.2.3-korg