Whamcloud - gitweb
LU-7786 tests: improve racer cleanup 75/18475/2
authorLokesh Nagappa Jaliminche <lokesh.jaliminche@seagate.com>
Wed, 17 Feb 2016 07:36:30 +0000 (13:06 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Mar 2016 02:39:33 +0000 (02:39 +0000)
commitdd48eb801321ab87c89dfbe3dd89fa487cf874b8
treedf4bb115c5df6c44436af59f64b327bdafa31074
parent7e41081c512afcb883582e9d9c24cd04e77d0b27
LU-7786 tests: improve racer cleanup

On cleanup racer terminates child scripts: file_create.sh,
dir_create.sh, etc. Children of those srcipts do not get terminated
that way. Long running commands, like dd, causes annoying warnings:
     /mnt/lustre2 is still busy, wait one second
on attempt to umount $DIR2.

Add trap to all child scripts to have then to cleanup on exiting.

Seagate-bug-id: MRP-2106
Change-Id: Ie9453449ceea3657881ebc0ce1edeb9e259c848e
Signed-off-by: Lokesh Nagappa Jaliminche <lokesh.jaliminche@seagate.com>
Reviewed-on: http://review.whamcloud.com/18475
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
19 files changed:
lustre/tests/racer/dir_create.sh
lustre/tests/racer/dir_migrate.sh
lustre/tests/racer/dir_remote.sh
lustre/tests/racer/file_chmod.sh
lustre/tests/racer/file_chown.sh
lustre/tests/racer/file_concat.sh
lustre/tests/racer/file_create.sh
lustre/tests/racer/file_delxattr.sh
lustre/tests/racer/file_exec.sh
lustre/tests/racer/file_getxattr.sh
lustre/tests/racer/file_link.sh
lustre/tests/racer/file_list.sh
lustre/tests/racer/file_mknod.sh
lustre/tests/racer/file_rename.sh
lustre/tests/racer/file_rm.sh
lustre/tests/racer/file_setxattr.sh
lustre/tests/racer/file_swap.sh
lustre/tests/racer/file_symlink.sh
lustre/tests/racer/file_truncate.sh