Correctly filter out result delimiter - make sure we still write output
to the buffer, we just don't want to write it into the database.
@@ -154,13 +154,14 @@ class PythonRunner(ActionRunner):
if not line:
break
- # Filter out result delimiter lines
- if ACTION_OUTPUT_RESULT_DELIMITER in line:
- break
+ buff.write(line)
- store_execution_stdout_line(execution_db=self.execution, action_db=self.action,
+ # Filter out result delimiter lines
+ if ACTION_OUTPUT_RESULT_DELIMITER not in line:
+ store_execution_stdout_line(execution_db=self.execution,
+ action_db=self.action,
line=line)
- buff.write(line)
+
except RuntimeError:
# process was terminated abruptly
pass
@@ -172,9 +173,12 @@ class PythonRunner(ActionRunner):
if not line:
break
- store_execution_stderr_line(execution_db=self.execution, action_db=self.action,
- line=line)
buff.write(line)
+
+ if ACTION_OUTPUT_RESULT_DELIMITER not in line:
+ store_execution_stderr_line(execution_db=self.execution,
+ action_db=self.action,
+ line=line)
except RuntimeError:
# process was terminated abruptly
pass
