diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-07-03 09:55:37 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-07-07 18:51:33 +1000 |
commit | 3403692ff035561222cb7bdbf997d0c7b02d2165 (patch) | |
tree | 8a19853f82221d0f163358353890c7f3a38ce3ed | |
parent | 58d8344da9ffd5441b0ddbae5438bc47cd969ec4 (diff) |
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>
-rw-r--r-- | tools/libinput-debug-gui.c | 2 | ||||
-rwxr-xr-x | tools/test_tool_option_parsing.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c index e594ff98..3d7df1b2 100644 --- a/tools/libinput-debug-gui.c +++ b/tools/libinput-debug-gui.c @@ -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); diff --git a/tools/test_tool_option_parsing.py b/tools/test_tool_option_parsing.py index d059d914..373aa8b9 100755 --- a/tools/test_tool_option_parsing.py +++ b/tools/test_tool_option_parsing.py @@ -354,6 +354,8 @@ def main(): args += ['@MESON_BUILD_ROOT@'] + os.environ['LIBINPUT_RUNNING_TEST_SUITE'] = '1' + return subprocess.run([sys.executable] + args).returncode |