]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tasks/cephfs: Use different errmsg for invalid dir
authorChristopher Hoffman <choffman@redhat.com>
Mon, 18 Aug 2025 13:02:59 +0000 (13:02 +0000)
committerJon <jonathan.bailey1@ibm.com>
Fri, 3 Oct 2025 13:31:26 +0000 (14:31 +0100)
During test_df_for_invalid_directory, path_walk is now called.
Use a more general error message as more errnos can be returned
and this will be a better catch all.

Signed-off-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit 45776aa32e27f14fb249cf3b52fa441b3a22a290)

qa/tasks/cephfs/test_cephfs_shell.py

index 3733d233c2e0607ee654eddd679f18f8172808b0..0864c1e5a7999ed0cd51517d88ed97e1afb33950 100644 (file)
@@ -833,7 +833,7 @@ class TestDF(TestCephFSShell):
     def test_df_for_invalid_directory(self):
         dir_abspath = path.join(self.mount_a.mountpoint, 'non-existent-dir')
         self.negtest_cephfs_shell_cmd(cmd='df ' + dir_abspath,
-                                      errmsg='error in stat')
+                                      errmsg='statfs failed')
 
     def test_df_for_valid_file(self):
         s = 'df test' * 14145016