From: Igor Golikov Date: Thu, 20 Feb 2025 16:25:12 +0000 (+0200) Subject: tests: add --verbose for better debugging of the custom fscript cli X-Git-Tag: v20.0.0~76^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=acae8940d857048fee365ee084a4359a420bf606;p=ceph.git tests: add --verbose for better debugging of the custom fscript cli Signed-off-by: Igor Golikov --- diff --git a/qa/tasks/cephfs/test_fscrypt.py b/qa/tasks/cephfs/test_fscrypt.py index c1405415c639..88c9d246e73f 100644 --- a/qa/tasks/cephfs/test_fscrypt.py +++ b/qa/tasks/cephfs/test_fscrypt.py @@ -22,17 +22,17 @@ class FSCryptTestCase(CephFSTestCase): self.mount_a.run_shell_payload("sudo fscrypt --help") self.mount_a.run_shell_payload("sudo fscrypt setup --help") - self.mount_a.run_shell_payload("sudo fscrypt setup --force --quiet") - self.mount_a.run_shell_payload("sudo fscrypt status") - self.mount_a.run_shell_payload(f"sudo fscrypt setup --quiet {self.mount_a.hostfs_mntpt}") - self.mount_a.run_shell_payload("sudo fscrypt status") + self.mount_a.run_shell_payload("sudo fscrypt setup --force --verbose") + self.mount_a.run_shell_payload("sudo fscrypt status --verbose") + self.mount_a.run_shell_payload(f"sudo fscrypt setup {self.mount_a.hostfs_mntpt} --verbose") + self.mount_a.run_shell_payload("sudo fscrypt status --verbose") self.mount_a.run_shell_payload(f"sudo dd if=/dev/urandom of={self.key_file} bs=32 count=1") self.mount_a.run_shell_payload(f"mkdir -p {self.path}") - self.mount_a.run_shell_payload(f"sudo fscrypt encrypt --quiet --source=raw_key --name={self.protector} --no-recovery --skip-unlock --key={self.key_file} {self.path}") - self.mount_a.run_shell_payload(f"sudo fscrypt unlock --quiet --key=/tmp/key {self.path}") + self.mount_a.run_shell_payload(f"sudo fscrypt encrypt --verbose --source=raw_key --name={self.protector} --no-recovery --skip-unlock --key={self.key_file} {self.path}") + self.mount_a.run_shell_payload(f"sudo fscrypt unlock --verbose --key=/tmp/key {self.path}") def tearDown(self): - self.mount_a.run_shell_payload(f"sudo fscrypt purge --force --quiet {self.mount_a.hostfs_mntpt}") + self.mount_a.run_shell_payload(f"sudo fscrypt purge --force --verbose {self.mount_a.hostfs_mntpt}") super().tearDown()