Zhou Zheng Sheng has uploaded a new change for review. Change subject: Fix localfs functional tests in Fedora 18 ......................................................................
Fix localfs functional tests in Fedora 18 localfs storage backend is placed in /tmp/XXX, however /tmp is tmpfs in Fedora 18 and it does not support direct IO, so we can not use it for storing the backend data and the tests fail. This patch create localfs storage backend in /var/lib/vdsm. Change-Id: I461d35a3698725a03b8512cff1bf9a36e7a8b9ed Signed-off-by: Zhou Zheng Sheng <[email protected]> --- M tests/functional/xmlrpcTests.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/93/12593/1 diff --git a/tests/functional/xmlrpcTests.py b/tests/functional/xmlrpcTests.py index a81b6e7..95f06a8 100644 --- a/tests/functional/xmlrpcTests.py +++ b/tests/functional/xmlrpcTests.py @@ -36,6 +36,7 @@ from vdsm.config import config from vdsm.constants import VDSM_USER, VDSM_GROUP, QEMU_PROCESS_USER, EXT_SUDO +from vdsm.constants import P_VDSM_LIB import storage.sd import storage.volume from storage.misc import execCmd @@ -394,7 +395,7 @@ uid = pwd.getpwnam(VDSM_USER)[2] gid = grp.getgrnam(VDSM_GROUP)[2] - rootDir = tempfile.mkdtemp(prefix='localfs') + rootDir = tempfile.mkdtemp(prefix='localfs', dir=P_VDSM_LIB) undo = lambda: os.rmdir(rootDir) rollback.prependDefer(undo) os.chown(rootDir, uid, gid) -- To view, visit http://gerrit.ovirt.org/12593 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I461d35a3698725a03b8512cff1bf9a36e7a8b9ed Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Zhou Zheng Sheng <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
