summaryrefslogtreecommitdiff
path: root/test-bugzilla-files/test-bugzilla-files.py
diff options
context:
space:
mode:
authorjorendc <joren.libreoffice@telenet.be>2012-12-27 00:52:50 +0100
committerjorendc <joren.libreoffice@telenet.be>2012-12-27 01:08:56 +0100
commita5e0f3bfe312094ee36ddb354d4cf3c7247af9b1 (patch)
tree92d25d7c79d3840d5b9173dfc85ecceb29f05d7a /test-bugzilla-files/test-bugzilla-files.py
parent753e330df61af85490c6fd8f4161852c126bf333 (diff)
add crashlog
Diffstat (limited to 'test-bugzilla-files/test-bugzilla-files.py')
-rw-r--r--test-bugzilla-files/test-bugzilla-files.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-bugzilla-files/test-bugzilla-files.py b/test-bugzilla-files/test-bugzilla-files.py
index c0ab8495..44a46bd6 100644
--- a/test-bugzilla-files/test-bugzilla-files.py
+++ b/test-bugzilla-files/test-bugzilla-files.py
@@ -292,6 +292,9 @@ def loadFromURL(xContext, url):
def handleCrash(file):
print("File: " + file + " crashed")
+ crashLog = open("Writer crashlog.txt", "a")
+ crashLog.write('Crash:' + file + '\n')
+ crashLog.close()
# add here the remaining handling code for crashed files
class LoadFileTest:
@@ -345,7 +348,7 @@ if __name__ == "__main__":
if len(args) == 0:
usage()
sys.exit(1)
- if "-h" in opts or "--help" in opts: #
+ if "-h" in opts or "--help" in opts:
usage()
sys.exit()
elif "--soffice" in opts: