Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lxbsz committed Nov 23, 2022
1 parent f43a632 commit 65888ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qa/tasks/cephfs/test_fscrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_fscrypt(self):
# and error message in some cases) and print custom log messages
# accordingly.
proc = self.mount_a.client_remote.run(args=['sudo', './check',
'-g', 'encrypt'], cwd=self.repo_path, stdout=StringIO(),
'generic/395'], cwd=self.repo_path, stdout=StringIO(),
stderr=StringIO(), timeout=900, check_status=False,omit_sudo=False,
label='running tests for encrypt from xfstests-dev')

Expand Down
15 changes: 12 additions & 3 deletions qa/tasks/cephfs/xfstests_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def get_test_and_scratch_dirs_ready(self):
# read var name as "scratch dir's mount path"
self.scratch_dirs_mount_path = self.mount_a.client_remote.mkdtemp(
suffix=self.scratch_dirname)
self.mount_a.run_shell(['sudo','ln','-s',join(self.mount_a.mountpoint,
self.scratch_dirname),
self.scratch_dirs_mount_path])
#self.mount_a.run_shell(['sudo','ln','-s',join(self.mount_a.mountpoint,
# self.scratch_dirname),
# self.scratch_dirs_mount_path])

def install_deps(self):
from teuthology.misc import get_system_type
Expand Down Expand Up @@ -123,6 +123,15 @@ def install_deps(self):
self.mount_a.client_remote.run(args=args, omit_sudo=False)

def create_reqd_users(self):
self.mount_a.client_remote.run(args=['sudo', 'userdel', '--force',
'--remove', 'fsgqa'],
omit_sudo=False, check_status=False)
self.mount_a.client_remote.run(args=['sudo', 'userdel', '--force',
'--remove', '123456-fsgqa'],
omit_sudo=False, check_status=False)
self.mount_a.client_remote.run(args=['sudo', 'groupdel', 'fsgqa'],
omit_sudo=False, check_status=False)

self.mount_a.client_remote.run(args=['sudo', 'useradd', 'fsgqa'],
omit_sudo=False, check_status=False)
self.mount_a.client_remote.run(args=['sudo', 'groupadd', 'fsgqa'],
Expand Down

0 comments on commit 65888ee

Please sign in to comment.