From 1b6413dbb6ef279e3ddb71ec6810a4ce703d5907 Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Mon, 6 Feb 2023 14:05:51 +0200 Subject: [PATCH] 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) --- qa/workunits/rgw/test_rgw_datacache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/rgw/test_rgw_datacache.py b/qa/workunits/rgw/test_rgw_datacache.py index f9cb136495a69..2dda61f18d0d7 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)) -- 2.39.5