]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart_runner: examine check_status before error 21180/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 2 Apr 2018 15:05:53 +0000 (08:05 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 2 Apr 2018 15:08:43 +0000 (08:08 -0700)
Issue found by Rishabh Dave. Fix suggested by John Spray.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/vstart_runner.py

index 62ac2921dea13080c69ea54774a0063eed964208..15428080f0d6eb6f6685cf7fe0ab6dede23248e3 100644 (file)
@@ -155,7 +155,7 @@ class LocalRemoteProcess(object):
         if self.finished:
             # Avoid calling communicate() on a dead process because it'll
             # give you stick about std* already being closed
-            if self.exitstatus != 0:
+            if self.check_status and self.exitstatus != 0:
                 raise CommandFailedError(self.args, self.exitstatus)
             else:
                 return