summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-10 10:23:39 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-10 10:44:08 +0200
commitfbc1f7b70262a40fdf7227ff589646ba459cdcc3 (patch)
tree1d186c5f8824bab20ecf0959464b7268c019ca91 /uitest
parentc5875ef76bf34b2f5dafe6cc1d25267bd5203685 (diff)
uitest: support starting the LibO with gdb
Change-Id: I23fe7563b3d0fe8084541d702583bc38997413ac
Diffstat (limited to 'uitest')
-rw-r--r--uitest/libreoffice/connection.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/uitest/libreoffice/connection.py b/uitest/libreoffice/connection.py
index bea7605c7c02..86c5d66f43c9 100644
--- a/uitest/libreoffice/connection.py
+++ b/uitest/libreoffice/connection.py
@@ -56,6 +56,15 @@ class OfficeConnection:
"--norestore", "--nologo" ]
if "--valgrind" in self.args:
argv.append("--valgrind")
+
+ if "--gdb" in self.args:
+ argv.insert(0, "gdb")
+ argv.insert(1, "-ex")
+ argv.insert(2, "run")
+ argv.insert(3, "--args")
+ argv[4] = argv[4].replace("soffice", "soffice.bin")
+ print(argv)
+
self.pro = subprocess.Popen(argv)
return self.pro