chiark / gitweb /
Quote responses. Unfortunately this is a major protocol change. I've
[disorder] / tests / dtest.py
index edf793b7fe1133d2a1b72aad31e359783ece082a..d4e3472b54693613cfa505e13efb1286591c100f 100644 (file)
@@ -307,7 +307,12 @@ def run(module=None, report=True):
         name = module.__name__
     # Open the error log
     global errs
-    errs = open("%s.log" % name, "w")
+    logfile = "%s.log" % name
+    try:
+        os.remove(logfile)
+    except:
+        pass
+    errs = open(logfile, "a")
     # Ensure that disorder.py uses the test installation
     disorder._configfile = "%s/config" % testroot
     disorder._userconf = False