From 2aa9e1f969e4a5f8df1f4a365515def0537cfe35 Mon Sep 17 00:00:00 2001 From: Christopher Hoffman Date: Mon, 18 Aug 2025 13:02:59 +0000 Subject: [PATCH] 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 (cherry picked from commit 45776aa32e27f14fb249cf3b52fa441b3a22a290) --- qa/tasks/cephfs/test_cephfs_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index 3733d233c2e06..0864c1e5a7999 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 -- 2.39.5