]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
vstart_runner: print result line unless opt_rotate_log is set
authorRishabh Dave <ridave@redhat.com>
Thu, 3 Dec 2020 10:41:41 +0000 (16:11 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 3 Dec 2020 10:50:30 +0000 (16:20 +0530)
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 <ridave@redhat.com>
qa/tasks/vstart_runner.py

index 7e8529879dc29f56a798cf0c7751c3c7691a1c5b..2e9035c94dfc166396b8a2da6af0214078c009fe 100644 (file)
@@ -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