Commit 4a3fab3f authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

tests: Add config reset to the setup and teardown of tree tests.

parent 6cf6014c
Pipeline #2228350 failed with stages
......@@ -11,6 +11,7 @@ class GtkDemoTest(unittest.TestCase):
def setUp(self):
import dogtail.config
dogtail.config.config.reset()
dogtail.config.config.logDebugToStdOut = True
dogtail.config.config.logDebugToFile = False
import dogtail.utils
......@@ -21,6 +22,8 @@ class GtkDemoTest(unittest.TestCase):
import os
import signal
import time
import dogtail.config
dogtail.config.config.reset()
os.kill(self.pid, signal.SIGKILL)
os.system('killall gtk3-demo-application > /dev/null 2>&1')
# Sleep just enough to let the app actually die.
......
......@@ -865,6 +865,7 @@ class TestUnicodeNames(unittest.TestCase):
def setUp(self):
import dogtail.config
dogtail.config.config.reset()
dogtail.config.config.logDebugToStdOut = True
dogtail.config.config.logDebugToFile = True
dogtail.config.config.logDebugToStdOut = True
......@@ -900,6 +901,8 @@ class TestUnicodeNames(unittest.TestCase):
def tearDown(self):
import signal
import dogtail.config
dogtail.config.config.reset()
os.kill(self.pid, signal.SIGKILL)
os.system('killall gedit > /dev/null 2>&1')
# Sleep just enough to let the app actually die.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment