]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests: kill in 131 needs to be quiet
authorDave Chinner <david@fromorbit.com>
Wed, 20 Jan 2010 21:54:38 +0000 (08:54 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 20 Jan 2010 21:54:38 +0000 (08:54 +1100)
If the kill fails because the processes have already terminates,
the output from kill (no such process) will cause the test to
fail. Make sure kill doesn't output anything.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
131

diff --git a/131 b/131
index 9be0a14ca7887bba109877c6093ab80c02f6cd0e..783765ed518f3aefa4afd6a903bdf11fcce2c472 100755 (executable)
--- a/131
+++ b/131
@@ -34,8 +34,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _cleanup()
 {
-    kill $locktest_pid2
-    kill $locktest_pid1
+    kill $locktest_pid2 2&>1 /dev/null
+    kill $locktest_pid1 2&>1 /dev/null
     _cleanup_testdir
 }