|
75 | 75 | if (enableAutologin) then |
76 | 76 | '' |
77 | 77 | with subtest("cosmic-greeter initialisation"): |
78 | | - machine.wait_for_unit("graphical.target") |
| 78 | + machine.wait_for_unit("graphical.target", timeout=120) |
79 | 79 | '' |
80 | 80 | else |
81 | 81 | '' |
82 | 82 | from time import sleep |
83 | 83 |
|
84 | | - machine.wait_for_unit("graphical.target") |
85 | | - machine.wait_until_succeeds("pgrep --uid ${toString cfg.users.users.cosmic-greeter.name} --full cosmic-greeter") |
| 84 | + machine.wait_for_unit("graphical.target", timeout=120) |
| 85 | + machine.wait_until_succeeds("pgrep --uid ${toString cfg.users.users.cosmic-greeter.name} --full cosmic-greeter", timeout=30) |
86 | 86 | # Sleep for 10 seconds for ensuring that `greetd` loads the |
87 | 87 | # password prompt for the login screen properly. |
88 | 88 | sleep(10) |
|
96 | 96 | # `cosmic-session` target is the Workspaces applet. So, wait |
97 | 97 | # for it to start. The process existing means that COSMIC |
98 | 98 | # now handles any opened windows from now on. |
99 | | - machine.wait_until_succeeds("pgrep --uid ${toString user.uid} --full 'cosmic-panel-button com.system76.CosmicWorkspaces'") |
| 99 | + machine.wait_until_succeeds("pgrep --uid ${toString user.uid} --full 'cosmic-panel-button com.system76.CosmicWorkspaces'", timeout=30) |
100 | 100 |
|
101 | 101 | # The best way to test for Wayland and XWayland is to launch |
102 | 102 | # the GUI applications and see the results yourself. |
|
121 | 121 | machine.wait_until_succeeds(f''''su - ${user.name} -c 'WAYLAND_DISPLAY=wayland-1 XDG_RUNTIME_DIR=/run/user/${toString user.uid} lswt --json | jq ".toplevels" | grep "^ \\"app-id\\": \\"{app_id}\\"$"' '''', timeout=30) |
122 | 122 | machine.succeed(f"pkill {gui_app}", timeout=5) |
123 | 123 |
|
124 | | - machine.succeed("echo 'test completed succeessfully' > /${testName}") |
| 124 | + machine.succeed("echo 'test completed succeessfully' > /${testName}", timeout=5) |
125 | 125 | machine.copy_from_vm('/${testName}') |
126 | 126 |
|
127 | 127 | machine.shutdown() |
|
0 commit comments