From: Fan Yong Date: Mon, 14 Nov 2016 16:34:53 +0000 (+0800) Subject: LU-9231 tests: cleanup obdecho before iokit exit X-Git-Tag: 2.9.55~11 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F26092%2F2;p=fs%2Flustre-release.git LU-9231 tests: cleanup obdecho before iokit exit Otherwise under some failure cases, it may leave the FID_SEQ_LOCAL_NAME local object which is used by the obdecho in the system, then the subsequent tests can NOT exit cleanly. Lustre-commit: c5675497b411d8b3f0f08fec3271fd528b4a52cf Lustre-change: http://review.whamcloud.com/23738 Test-Parameters: alwaysuploadlogs envdefinitions=PTLDEBUG=-1,DEBUG_SIZE=150 mdtfilesystemtype=ldiskfs ostfilesystemtype=ldiskfs clientdistro=el7 ossdistro=el7 mdsdistro=el7 mdscount=2 mdtcount=4 testlist=mds-survey,mmp,mds-survey,mmp,mds-survey,mmp Signed-off-by: Fan Yong Signed-off-by: Bob Glossman Change-Id: I741cf20875df679ecdf72d5461cc14eec166e3ae Reviewed-by: Jian Yu Reviewed-by: John L. Hammond Reviewed-on: https://review.whamcloud.com/26092 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre-iokit/obdfilter-survey/iokit-libecho b/lustre-iokit/obdfilter-survey/iokit-libecho index 3cd02f6..e194b6b 100644 --- a/lustre-iokit/obdfilter-survey/iokit-libecho +++ b/lustre-iokit/obdfilter-survey/iokit-libecho @@ -255,7 +255,7 @@ cleanup () { fi exit $exit_status } -trap 'cleanup 0 $clean_srv_OSS $cleanup_oscs' SIGHUP SIGINT SIGTERM +trap 'cleanup 0 $clean_srv_OSS $cleanup_oscs' EXIT SIGHUP SIGINT SIGTERM # gets echoclient device number and attach it to the client UUID # Results are returned by an echo followed by an exit