mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 11:10:29 +01:00
tools: when running the test suite, start the debug-gui minimized
This allows us to run the option parsing test without getting interrupted by a million debug-gui windows popping up for half a second. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
58d8344da9
commit
3403692ff0
2 changed files with 4 additions and 0 deletions
|
|
@ -809,6 +809,8 @@ window_init(struct window *w)
|
|||
list_init(&w->evdev_devices);
|
||||
|
||||
w->win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
if (getenv("LIBINPUT_RUNNING_TEST_SUITE"))
|
||||
gtk_window_iconify(GTK_WINDOW(w->win));
|
||||
gtk_widget_set_events(w->win, 0);
|
||||
gtk_window_set_title(GTK_WINDOW(w->win), "libinput debugging tool");
|
||||
gtk_window_set_default_size(GTK_WINDOW(w->win), 1024, 768);
|
||||
|
|
|
|||
|
|
@ -354,6 +354,8 @@ def main():
|
|||
|
||||
args += ['@MESON_BUILD_ROOT@']
|
||||
|
||||
os.environ['LIBINPUT_RUNNING_TEST_SUITE'] = '1'
|
||||
|
||||
return subprocess.run([sys.executable] + args).returncode
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue