Commit Graph

8 Commits

Author SHA1 Message Date
Rishabh Dave
eac83582f3 qa/cephfs: add check in test_acls.py
In xfstests-dev, "./check generic/abcd" doesn't end in error even when
there is no test abcd in generic. It's better to check the stdout to
verify success and print the returncode, stdout and stderr of the
command in logs so that such error can be found out by reading logs.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2022-04-27 14:44:37 +05:30
Rishabh Dave
d3b9543624 qa/cephfs: print cmd debug info when it fails
Print return code, stdout and stderr for the command that launches
xfstests-dev tests against CephFS when it fails.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2022-04-27 14:44:37 +05:30
Rishabh Dave
09d5e07d16 qa/cephfs: use StringIO instead of BytesIO
StringIO can be operated on without extra hassles of converting. So
replace BytesIO by StringIO in test_acls.py and xfstests_dev.py

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2022-04-27 14:43:41 +05:30
Rishabh Dave
1423f959e8 qa/cephfs: set omit_sudo to False in test_acls.py
When running "sudo ./check generic/099" in test_acls.py's test method
named test_acls(), set omit_sudo to False because without it
vstart_runner.py will remove "sudo" from command arguments and so the
command will fail unnecessarily.

Fixes: https://tracker.ceph.com/issues/55374
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2022-04-27 14:43:41 +05:30
Rishabh Dave
b60b73c0fe qa/cephfs: just import getLogger instead of whole module
Import just the necessary object instead of importing entire module.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2022-04-27 14:43:41 +05:30
Kefu Chai
947a74349d qa: import with full path
to be py3 compatible

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-24 18:27:55 +08:00
Kyr Shatskyy
9f6c764f10 qa/tasks/cephfs: get rid of StringIO for py3
Use io.BytesIO and six.ensure_str for py3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-06 10:19:55 +01:00
Rishabh Dave
a9db23fd18 qa/cephfs: add tests for ACLs
Add code to run tests for ACLs from xfstests-dev against kernel and
FUSE CephFS mounts.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2019-12-03 18:17:18 +05:30