From: Rishabh Dave Date: Thu, 3 Dec 2020 10:41:41 +0000 (+0530) Subject: vstart_runner: print result line unless opt_rotate_log is set X-Git-Tag: v17.0.0~376^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b0cc7ac1a82aadb86f7370c9713308447da09a67;p=ceph-ci.git vstart_runner: print result line unless opt_rotate_log is set Unless the option to rotate logs is set, don't delete the final result line printed by unittest. Fixes: https://tracker.ceph.com/issues/48447 Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 7e8529879dc..2e9035c94df 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -1373,7 +1373,8 @@ class LogStream(object): self._write() def _write(self): - self._del_result_lines() + if opt_rotate_logs: + self._del_result_lines() if self.buffer == '': return