diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-30 23:09:48 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-30 23:09:48 +0100 |
commit | 4c29e806117634dacfb83f6ea78af6463e2a4161 (patch) | |
tree | 05442df4107c8a1f609219ab1923775f7715771a /tests/by-name/nv/nvim-checkhealth | |
parent | tests(infrastructure/run.nix): Bring up-to-date with the `default.nix` (diff) | |
download | nixos-config-4c29e806117634dacfb83f6ea78af6463e2a4161.tar.gz nixos-config-4c29e806117634dacfb83f6ea78af6463e2a4161.zip |
fix(tests/{yambar,nvim-checkhealth}): Update to use `Exec`
Diffstat (limited to '')
-rw-r--r-- | tests/by-name/nv/nvim-checkhealth/test.desc | 16 | ||||
-rw-r--r-- | tests/by-name/nv/nvim-checkhealth/test.nix | 2 |
2 files changed, 3 insertions, 15 deletions
diff --git a/tests/by-name/nv/nvim-checkhealth/test.desc b/tests/by-name/nv/nvim-checkhealth/test.desc index 4d977c0c..169cf49f 100644 --- a/tests/by-name/nv/nvim-checkhealth/test.desc +++ b/tests/by-name/nv/nvim-checkhealth/test.desc @@ -1,21 +1,9 @@ -# Give the shell time to start up -Sleep 2 - # We open a `*.norg` file to run the norg ftplugin. -Type nvim test.norg --headless "+set nospell" "+checkhealth" "+w! health.log" +q +wa +qa -Sleep 1 -Type Enter - -# TODO: The test system should be able to just wait until a command has finished. <2024-11-23> -# Wait until `nvim` has collected the health check. -Sleep 240 +Exec nvim test.norg --headless "+set nospell" "+checkhealth" "+w! health.log" +q +wa +qa # The `checkhealth` output is not reproducible. # Thus only output the warnings/errors. -Type batgrep --ignore-case 'warning|error' health.log > new_golden -Sleep 1 -Type Enter -Sleep 2 +Exec batgrep --ignore-case 'warning|error' health.log > new_golden SetGolden new_golden diff --git a/tests/by-name/nv/nvim-checkhealth/test.nix b/tests/by-name/nv/nvim-checkhealth/test.nix index d84a2627..7bd45b3c 100644 --- a/tests/by-name/nv/nvim-checkhealth/test.nix +++ b/tests/by-name/nv/nvim-checkhealth/test.nix @@ -40,5 +40,5 @@ mkTest { description = ./test.desc; - hash = "4927ff94c6e9fb0dcb25c8e3e30f3e489cab5bb0a054656776af19725308bfe1"; + hash = "df83c3e2533402e8b1e98f50a462042b70f024bfe3c9a14f87deaf486a9ff1e3"; } |