[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1402325451-5275-2-git-send-email-tytso@mit.edu>
Date: Mon, 9 Jun 2014 10:50:51 -0400
From: Theodore Ts'o <tytso@....edu>
To: Ext4 Developers List <linux-ext4@...r.kernel.org>
Cc: bensberg@...temail.net, Theodore Ts'o <tytso@....edu>
Subject: [PATCH 2/2] tests: clean up the temp file if test_one is interrupted
Signed-off-by: Theodore Ts'o <tytso@....edu>
---
tests/test_one.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test_one.in b/tests/test_one.in
index 01a9260..eb28313 100644
--- a/tests/test_one.in
+++ b/tests/test_one.in
@@ -31,6 +31,7 @@ fi
test_name=`echo $test_dir | sed -e 's;.*/;;'`
TMPFILE=$(mktemp -t e2fsprogs-tmp-$test_name.XXXXXX)
+trap 'rm -f $TMPFILE ; exit' 1 2 15
if [ -f $test_dir ] ; then
exit 0;
--
2.0.0
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists