Whamcloud - gitweb
tests: kill debugfs on interrupted MMP test
authorAndreas Dilger <adilger@dilger.ca>
Mon, 10 Sep 2012 09:04:47 +0000 (09:04 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 Sep 2012 02:05:21 +0000 (22:05 -0400)
commit12f48b0caa366e7a02ac8ad57af4ecf0b8bb3778
tree678e66471c72b6f054be9e5b538d87845797ab9f
parenta3e87bcc32a21b1420a15385e0183d58dcaf19b1
tests: kill debugfs on interrupted MMP test

If the f_mmp test is interrupted during its test run, then it can
leave debugfs busy-looping in the background.  Since f_mmp is a
relatively long-running test, and is likely to be running during
a parallel test run, this can happen fairly often.

Set a signal trap for the f_mmp test script being killed, so that
the background debugfs command will always be killed by the test.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_mmp/script