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 <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3942 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
68740678e1
commit
dd8cbf8411
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user