Ignore tmp files
diff --git a/tests/oft b/tests/oft
index 1ace47d..0b54a99 100755
--- a/tests/oft
+++ b/tests/oft
@@ -281,6 +281,8 @@
     # There's an extra empty entry at the end of the list 
     filelist = p2.communicate()[0].split("\n")[:-1]
     for file in filelist:
+        if file[-1:] == '~':
+            continue
         modfile = file.lstrip('./')[:-3]
 
         try: