mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
lvmdbustest.py: Correct debug & assert order
If we do the assert first we won't get to the print statement.
This commit is contained in:
parent
ee7946ed82
commit
97b6486b27
@ -1734,10 +1734,10 @@ class TestDbusService(unittest.TestCase):
|
|||||||
path = self._lookup(resource_name)
|
path = self._lookup(resource_name)
|
||||||
self.assertTrue(path != '/')
|
self.assertTrue(path != '/')
|
||||||
else:
|
else:
|
||||||
self.assertTrue(ec == 0, "%s exit code = %d" % (operation, ec))
|
|
||||||
std_err_print(
|
std_err_print(
|
||||||
"%s failed with stdout= %s, stderr= %s" %
|
"%s failed with stdout= %s, stderr= %s" %
|
||||||
(operation, stdout, stderr))
|
(operation, stdout, stderr))
|
||||||
|
self.assertTrue(ec == 0, "%s exit code = %d" % (operation, ec))
|
||||||
|
|
||||||
def test_external_vg_create(self):
|
def test_external_vg_create(self):
|
||||||
# We need to ensure that if a user creates something outside of lvm
|
# We need to ensure that if a user creates something outside of lvm
|
||||||
|
Loading…
Reference in New Issue
Block a user