Fix autotest_common.sh to find only core files.
Currently the scripts deletes also files located in ocf submoudle named core.py. This patch adds regex to avoid that. Signed-off-by: Piotr Pelplinski <piotr.pelplinski@intel.com> Change-Id: I97a21c4860cb54f37f28641dc9cd47adcf2fd939 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448519 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
8b61834dd0
commit
ae11723ae9
@ -278,7 +278,7 @@ function report_test_completion() {
|
||||
|
||||
function process_core() {
|
||||
ret=0
|
||||
for core in $(find . -type f \( -name 'core*' -o -name '*.core' \)); do
|
||||
for core in $(find . -type f \( -name 'core\.?[0-9]*' -o -name '*.core' \)); do
|
||||
exe=$(eu-readelf -n "$core" | grep psargs | sed "s/.*psargs: \([^ \'\" ]*\).*/\1/")
|
||||
if [[ ! -f "$exe" ]]; then
|
||||
exe=$(eu-readelf -n "$core" | grep -oP -m1 "$exe.+")
|
||||
|
Loading…
Reference in New Issue
Block a user