summaryrefslogtreecommitdiff
path: root/tests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template')
-rwxr-xr-xtests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template b/tests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template
index c799e18..aa4cf28 100755
--- a/tests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template
+++ b/tests/system/wait_for_opt_usr/wait_for_opt_usr.sh.template
@@ -20,6 +20,7 @@ if ! umount -l ${OPT_MOUNTPOINT}; then
fi
save_core_pattern
+trap restore_core_pattern 0
echo "|/usr/bin/crash-manager %p %u %g %s %t %i" > /proc/sys/kernel/core_pattern
@@ -31,8 +32,6 @@ echo "|/usr/bin/crash-manager %p %u %g %s %t %i" > /proc/sys/kernel/core_pattern
sleep 20
-restore_core_pattern
-
echo "${MTAB}" | while read OPT_LINE; do
OPT_DEV=`echo ${OPT_LINE} | cut -d' ' -f1`
OPT_FS=`echo ${OPT_LINE} | cut -d' ' -f3`