Skip to content

Commit 45776aa

Browse files
committed
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 <[email protected]>
1 parent dd7bdd3 commit 45776aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/tasks/cephfs/test_cephfs_shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def test_df_for_valid_directory(self):
833833
def test_df_for_invalid_directory(self):
834834
dir_abspath = path.join(self.mount_a.mountpoint, 'non-existent-dir')
835835
self.negtest_cephfs_shell_cmd(cmd='df ' + dir_abspath,
836-
errmsg='error in stat')
836+
errmsg='statfs failed')
837837

838838
def test_df_for_valid_file(self):
839839
s = 'df test' * 14145016

0 commit comments

Comments
 (0)