]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix various py3 cephfs qa bugs x2 32533/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 7 Jan 2020 21:04:32 +0000 (13:04 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 7 Jan 2020 21:06:11 +0000 (13:06 -0800)
Fixes: https://tracker.ceph.com/issues/43515
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/test_cap_flush.py

index cb1053681264b089993ee2a10a7aca5059a7eccb..eb4c3ff79eadd5b95402229b687952268960cb56 100644 (file)
@@ -42,7 +42,7 @@ class TestCapFlush(CephFSTestCase):
             os.chdir("{0}")
             os.setgid(65534)
             os.setuid(65534)
-            fd = os.open("{1}", os.O_CREAT | os.O_RDWR, 0644)
+            fd = os.open("{1}", os.O_CREAT | os.O_RDWR, 0o644)
             os.fchmod(fd, 0o640)
             """).format(dir_path, file_name)
         self.mount_a.run_python(py_script)