Francesco Romani has uploaded a new change for review.

Change subject: tests: add missing attribute
......................................................................

tests: add missing attribute

when running volTests, the following AttributeError
pops out:

Exception AttributeError: "FileDomainMockObject instance has no
attribute 'stat'" in <bound method FileDomainMockObject.__del__ of
<volumeTests.FileDomainMockObject instance at 0x1f0eef0>> ignored

This is caused by the __del__ method of the StorageDomain class,
which does cleanup depending on the value of the `stat` attribute.

This patch adds the missing attribute.

Change-Id: I874bed6aff0b3dc4199a5870a293cf05e57986c9
Signed-off-by: Francesco Romani <[email protected]>
---
M tests/volumeTests.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/90/23790/1

diff --git a/tests/volumeTests.py b/tests/volumeTests.py
index 0ec05e5..6e4a3b2 100644
--- a/tests/volumeTests.py
+++ b/tests/volumeTests.py
@@ -31,6 +31,7 @@
     def __init__(self, mountpoint, sdUUID):
         self.mountpoint = mountpoint
         self.sdUUID = sdUUID
+        self.stat = None
 
     @property
     def oop(self):


-- 
To view, visit http://gerrit.ovirt.org/23790
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I874bed6aff0b3dc4199a5870a293cf05e57986c9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to