mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
test: Fix test to run with btrfs which has snap_### dirs
Fixes: http://tracker.ceph.com/issues/15347 Signed-off-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
parent
6f8596fc01
commit
aedc529b4c
@ -400,6 +400,9 @@ def check_data(DATADIR, TMPFILE, OSDDIR, SPLIT_NAME):
|
||||
logging.error("Can't find imported object {name}".format(name=file))
|
||||
ERRORS += 1
|
||||
for obj_loc in obj_locs:
|
||||
# For btrfs skip snap_* dirs
|
||||
if re.search("/snap_[0-9]*/", obj_loc) is not None:
|
||||
continue
|
||||
repcount += 1
|
||||
cmd = "diff -q {src} {obj_loc}".format(src=path, obj_loc=obj_loc)
|
||||
logging.debug(cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user