Fix failing Glusterfs object unit test
Fix failing unit test by properly setting the errno field value in the mock object. Change-Id: I86a60c74d7d88736612f84e0d00ab4d5a94b533c Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4967 Reviewed-by: Luis Pabon <lpabon@redhat.com> Reviewed-by: Mohammed Junaid <junaid@redhat.com> Tested-by: Mohammed Junaid <junaid@redhat.com>
This commit is contained in:
parent
3a75da67cb
commit
ec8f90d98b
@ -28,7 +28,7 @@ def mock_os_system(cmd):
|
||||
return False
|
||||
|
||||
def mock_fcntl_lockf(f, *a, **kw):
|
||||
raise IOError(errno.EAGAIN)
|
||||
raise IOError(errno.EAGAIN, os.strerror(errno.EAGAIN))
|
||||
|
||||
def _init():
|
||||
global _RUN_DIR, _OS_SYSTEM, _FCNTL_LOCKF
|
||||
|
Loading…
x
Reference in New Issue
Block a user