From: Mark Kogan Date: Mon, 6 Feb 2023 12:05:51 +0000 (+0200) Subject: reef: qa: d3n: fix test failure when "inline_data": false X-Git-Tag: v18.1.0~224^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b6413dbb6ef279e3ddb71ec6810a4ce703d5907;p=ceph.git reef: qa: d3n: fix test failure when "inline_data": false 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 (cherry picked from commit f474c7fdbe937a07451ecef246e43e3f46b7010d) --- diff --git a/qa/workunits/rgw/test_rgw_datacache.py b/qa/workunits/rgw/test_rgw_datacache.py index f9cb136495a6..2dda61f18d0d 100755 --- a/qa/workunits/rgw/test_rgw_datacache.py +++ b/qa/workunits/rgw/test_rgw_datacache.py @@ -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))