From dd8cbf8411b0aeda3d438b18099ec53a487b17d6 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Wed, 26 Aug 2020 13:59:24 +0200 Subject: [PATCH] test/common: Fix matching on core dump's name find's -name doesn't work with regexes hence the applied pattern didn't match on plain "core" name (as the expression would suggest to match on). Replace it with additional shell patterns to include some additional common core_patterns - this is relevant for the tests which may be run indepdendently from autotest.sh and still use core_pattern with its default setting. Change-Id: I5ba1bc44b156a68779d09688718b7c634b6d8cba Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3942 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Ben Walker --- test/common/autotest_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index c9b92692b..b0bc56d4e 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -595,7 +595,7 @@ function process_core() { mv $core $output_dir chmod a+r $output_dir/$core ret=1 - done < <(find . -type f \( -name 'core\.?[0-9]*' -o -name '*.core' \) -print0) + done < <(find . -type f \( -name 'core.[0-9]*' -o name 'core' -o -name '*.core' \) -print0) return $ret }