From: Christopher Hoffman Date: Mon, 18 Aug 2025 13:02:59 +0000 (+0000) Subject: tasks/cephfs: Use different errmsg for invalid dir X-Git-Tag: testing/wip-vshankar-testing-20250821.112602-debug~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=45776aa32e27f14fb249cf3b52fa441b3a22a290;p=ceph-ci.git tasks/cephfs: Use different errmsg for invalid dir 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 --- diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index 3733d233c2e..0864c1e5a79 100644 --- a/qa/tasks/cephfs/test_cephfs_shell.py +++ b/qa/tasks/cephfs/test_cephfs_shell.py @@ -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