nixosTests.sway: skip nagbar test on aarch64-linux for now (#416317)
This commit is contained in:
commit
ee930f9755
@ -181,14 +181,18 @@
|
|||||||
machine.send_key("alt-shift-q")
|
machine.send_key("alt-shift-q")
|
||||||
machine.wait_until_fails("pgrep --exact gpg")
|
machine.wait_until_fails("pgrep --exact gpg")
|
||||||
|
|
||||||
# Test swaynag:
|
|
||||||
def get_height():
|
|
||||||
return [node['rect']['height'] for node in walk(swaymsg(type="get_tree")) if node['focused']][0]
|
|
||||||
|
|
||||||
before = get_height()
|
${lib.optionalString pkgs.stdenv.hostPlatform.isx86_64 ''
|
||||||
machine.send_key("alt-shift-e")
|
# Test swaynag:
|
||||||
retry(lambda _: get_height() < before)
|
# Broken on aarch64-linux, see https://github.com/NixOS/nixpkgs/issues/416217
|
||||||
machine.screenshot("sway_exit")
|
def get_height():
|
||||||
|
return [node['rect']['height'] for node in walk(swaymsg(type="get_tree")) if node['focused']][0]
|
||||||
|
|
||||||
|
before = get_height()
|
||||||
|
machine.send_key("alt-shift-e")
|
||||||
|
retry(lambda _: get_height() < before)
|
||||||
|
machine.screenshot("sway_exit")
|
||||||
|
''}
|
||||||
|
|
||||||
swaymsg("exec swaylock")
|
swaymsg("exec swaylock")
|
||||||
machine.wait_until_succeeds("pgrep -xf swaylock")
|
machine.wait_until_succeeds("pgrep -xf swaylock")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user