From 3fe54eb8514f319a28a92b7f3b3782b9fcda5f31 Mon Sep 17 00:00:00 2001 From: Honnip Date: Mon, 27 May 2024 18:02:14 +0900 Subject: [PATCH] nixosTests.gnome-extensions: `ENABLED` and `DISABLED` states are renamed https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/01e9724d75a273ca43a7c268302d6c3802c8f850 Fix the test failure caused by the renaming of the states name from `ENABLED`, `DISABLED` to `ACTIVE` and `INACTIVE` (cherry picked from commit b2069e7fc72f542f65e2b8802b26fffffff5de69) --- nixos/tests/gnome-extensions.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/gnome-extensions.nix b/nixos/tests/gnome-extensions.nix index b2b54e4b13a1..332cf44b0ed4 100644 --- a/nixos/tests/gnome-extensions.nix +++ b/nixos/tests/gnome-extensions.nix @@ -137,11 +137,11 @@ import ./make-test-python.nix ( # Enable and optionally disable machine.succeed(f"${run "gnome-extensions enable {extension}"}") - checkState("ENABLED", extension) + checkState("ACTIVE", extension) if disable: machine.succeed(f"${run "gnome-extensions disable {extension}"}") - checkState("DISABLED", extension) + checkState("INACTIVE", extension) '' + lib.concatLines (map (e: ''checkExtension("${e}", False)'') alwaysOnExtensions) + lib.concatLines (map (e: ''checkExtension("${e}", True)'') testExtensions)