projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: lttng-modules: Update discard strategy of the gerrit job
[lttng-ci.git]
/
scripts
/
lttng-tools
/
hang_processes.sh
diff --git
a/scripts/lttng-tools/hang_processes.sh
b/scripts/lttng-tools/hang_processes.sh
index f0d2ccf7cac09bd2c129bc5cf1ee5c39f54fa832..34f8ef03d13bb48e31e5e072cef6a6815e7b34c2 100755
(executable)
--- a/
scripts/lttng-tools/hang_processes.sh
+++ b/
scripts/lttng-tools/hang_processes.sh
@@
-68,7
+68,7
@@
while read -r core_file; do
collect_recursive "$str"
done
collect_recursive "$str"
done
- rm -f "$core_file"
+ echo "$core_file" >> $file_list
ret=1
done < <(find "/tmp" -maxdepth 1 -name "core\.[0-9]*" -type f 2>/dev/null)
ret=1
done < <(find "/tmp" -maxdepth 1 -name "core\.[0-9]*" -type f 2>/dev/null)
@@
-78,5
+78,10
@@
if [ -s "$file_list" ]; then
tar cfzh "${WORKSPACE}/build/core.tar.gz" -T <(sort "$file_list" | uniq)
fi
tar cfzh "${WORKSPACE}/build/core.tar.gz" -T <(sort "$file_list" | uniq)
fi
+# Remove core file
+while read -r core_file; do
+ rm -rf "$core_file"
+done < <(find "/tmp" -maxdepth 1 -name "core\.[0-9]*" -type f 2>/dev/null)
+
rm -f "$file_list"
exit $ret
rm -f "$file_list"
exit $ret
This page took
0.023171 seconds
and
4
git commands to generate.