From 4cc1b77c3fc4f4b3bc61921dda72663eea962fa3 Mon Sep 17 00:00:00 2001 From: Nicolas Berbiche Date: Thu, 5 Nov 2020 21:00:22 -0500 Subject: [PATCH] kakoune: fix tests Following https://github.com/NixOS/nixpkgs/pull/91792 --- tests/modules/programs/kakoune/no-plugins.nix | 2 +- tests/modules/programs/kakoune/use-plugins.nix | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/modules/programs/kakoune/no-plugins.nix b/tests/modules/programs/kakoune/no-plugins.nix index 76dea5440..67a7f30f5 100644 --- a/tests/modules/programs/kakoune/no-plugins.nix +++ b/tests/modules/programs/kakoune/no-plugins.nix @@ -7,7 +7,7 @@ with lib; programs.kakoune = { enable = true; }; nmt.script = '' - assertFileNotRegex home-path/share/kak/plugins.kak . # file is empty + assertPathNotExists home-path/share/kak/autoload/plugins ''; }; } diff --git a/tests/modules/programs/kakoune/use-plugins.nix b/tests/modules/programs/kakoune/use-plugins.nix index 7b23627db..521bd9a07 100644 --- a/tests/modules/programs/kakoune/use-plugins.nix +++ b/tests/modules/programs/kakoune/use-plugins.nix @@ -9,10 +9,8 @@ with lib; plugins = [ pkgs.kakounePlugins.kak-powerline ]; }; - nmt.script = let plugins_kak = "home-path/share/kak/plugins.kak"; - in '' - assertFileRegex ${plugins_kak} \ - '^source "/nix/store/.*-kak-powerline/share/kak/autoload/plugins/powerline/.*.kak"$' + nmt.script = '' + assertDirectoryNotEmpty home-path/share/kak/autoload/plugins ''; }; }