]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
reef: qa: d3n: fix test failure when "inline_data": false 50603/head
authorMark Kogan <mkogan@redhat.com>
Mon, 6 Feb 2023 12:05:51 +0000 (14:05 +0200)
committerMark Kogan <mkogan@redhat.com>
Tue, 21 Mar 2023 08:40:13 +0000 (10:40 +0200)
backport tracker: https://tracker.ceph.com/issues/59004
backport of https://github.com/ceph/ceph/pull/50003
parent tracker: https://tracker.ceph.com/issues/58552

Fixes: https://tracker.ceph.com/issues/58552
Signed-off-by: Mark Kogan <mkogan@redhat.com>
(cherry picked from commit f474c7fdbe937a07451ecef246e43e3f46b7010d)

qa/workunits/rgw/test_rgw_datacache.py

index f9cb136495a69fc9b638a38565f294e5efd11653..2dda61f18d0d763272bdfa0dc0c3a15e99abc6ee 100755 (executable)
@@ -186,7 +186,7 @@ def main():
     # list the files in the cache dir for troubleshooting
     out = exec_cmd('ls -l %s' % (cache_dir))
     # get name of cached object and check if it exists in the cache
-    out = exec_cmd('find %s -name "*%s*"' % (cache_dir, cached_object_name))
+    out = exec_cmd('find %s -name "*%s1"' % (cache_dir, cached_object_name))
     cached_object_path = get_cmd_output(out)
     log.debug("Path of file in datacache is: %s", cached_object_path)
     out = exec_cmd('basename %s' % (cached_object_path))