diff --git a/scripts/patchtest b/scripts/patchtest
index 4c74056065..74184f107a 100755
--- a/scripts/patchtest
+++ b/scripts/patchtest
@@ -221,7 +221,8 @@ def main():
         log_path = None
         if PatchtestParser.log_results:
             log_path = patch + ".testresult"
-            with open(log_path, "a") as f:
+            # Start a new file, so that results from an earlier run aren't kept
+            with open(log_path, "w") as f:
                 f.write("Patchtest results for patch '%s':\n\n" % patch)
 
         try:
