From 18cd9132b09da3fc7c508a1663a5671a53088fa2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 13 Jun 2025 05:00:57 +0200 Subject: [PATCH] nixosTests.sway: skip nagbar test on aarch64-linux for now Since the sway 1.11 release this test has been getting stuck, since the nagbar is not appearing. --- nixos/tests/sway.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/nixos/tests/sway.nix b/nixos/tests/sway.nix index a79e692d24cb..b8634cf482b6 100644 --- a/nixos/tests/sway.nix +++ b/nixos/tests/sway.nix @@ -181,14 +181,18 @@ machine.send_key("alt-shift-q") 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() - machine.send_key("alt-shift-e") - retry(lambda _: get_height() < before) - machine.screenshot("sway_exit") + ${lib.optionalString pkgs.stdenv.hostPlatform.isx86_64 '' + # Test swaynag: + # Broken on aarch64-linux, see https://github.com/NixOS/nixpkgs/issues/416217 + 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") machine.wait_until_succeeds("pgrep -xf swaylock")