]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix various py3 cephfs qa bugs x2 34470/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 7 Jan 2020 21:04:32 +0000 (13:04 -0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Tue, 5 May 2020 15:43:41 +0000 (15:43 +0000)
Fixes: https://tracker.ceph.com/issues/43515
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit ae28ed11d7b9b1dac7dab1e8f5dc0c9643b5de76)

qa/tasks/cephfs/test_cap_flush.py

index 8a1b4c54b38ee910aa77d379842ba5b0235d32fa..27b9af670cf4fdbe0e72c3bffb28f504db8869da 100644 (file)
@@ -43,7 +43,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)