We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fc3b33 + e3ed3b3 commit 2448960Copy full SHA for 2448960
qa/tasks/cephfs/test_pool_perm.py
@@ -6,20 +6,20 @@
6
7
class TestPoolPerm(CephFSTestCase):
8
def test_pool_perm(self):
9
- self.mount_a.run_shell(["touch", "test_file"])
+ self.mount_a.run_shell_payload("dd if=/dev/urandom of=test_file bs=4k count=1")
10
11
file_path = os.path.join(self.mount_a.mountpoint, "test_file")
12
13
remote_script = dedent("""
14
import os
15
import errno
16
17
- fd = os.open("{path}", os.O_RDWR)
+ fd = os.open("{path}", os.O_RDWR | os.O_SYNC)
18
try:
19
if {check_read}:
20
ret = os.read(fd, 1024)
21
else:
22
- os.write(fd, b'content')
+ os.pwrite(fd, b'content', 0)
23
except OSError as e:
24
if e.errno != errno.EPERM:
25
raise
0 commit comments