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)
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