mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Merge branch 'tap' into 'master'
gio: use TAPTestRunner in the memory monitor tests See merge request GNOME/glib!1443
This commit is contained in:
commit
fa76bde252
@ -21,6 +21,8 @@ import fcntl
|
||||
import os
|
||||
import time
|
||||
|
||||
import taptestrunner
|
||||
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gio
|
||||
|
||||
@ -98,5 +100,4 @@ class TestLowMemoryMonitor(dbusmock.DBusTestCase):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# avoid writing to stderr
|
||||
unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout, verbosity=2))
|
||||
unittest.main(testRunner=taptestrunner.TAPTestRunner())
|
||||
|
@ -21,6 +21,8 @@ import fcntl
|
||||
import os
|
||||
import time
|
||||
|
||||
import taptestrunner
|
||||
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gio
|
||||
|
||||
@ -114,5 +116,4 @@ class TestLowMemoryMonitorPortal(dbusmock.DBusTestCase):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# avoid writing to stderr
|
||||
unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout, verbosity=2))
|
||||
unittest.main(testRunner=taptestrunner.TAPTestRunner())
|
||||
|
@ -531,8 +531,9 @@ if installed_tests_enabled
|
||||
cdata = configuration_data()
|
||||
cdata.set('installed_tests_dir', installed_tests_execdir)
|
||||
cdata.set('program', memory_monitor_test + '.py')
|
||||
cdata.set('env', '')
|
||||
configure_file(
|
||||
input: installed_tests_template,
|
||||
input: installed_tests_template_tap,
|
||||
output: memory_monitor_test + '.test',
|
||||
install_dir: installed_tests_metadir,
|
||||
configuration: cdata
|
||||
|
Loading…
Reference in New Issue
Block a user