summaryrefslogtreecommitdiff
path: root/test/handler/test_nix_handler.vader
diff options
context:
space:
mode:
authorAntonio Gurgel <github@antonio.goorzhel.com>2022-12-25 02:02:01 -0800
committerGitHub <noreply@github.com>2022-12-25 19:02:01 +0900
commit4c5c47b5939ab3446ccc2f9cb1de57a1ec47e379 (patch)
treee9bc310a2f543d757a52ef26605f78a3459ce886 /test/handler/test_nix_handler.vader
parent87b4ab4e20eed66b29b8ec0919ac9a448b047214 (diff)
downloadale-4c5c47b5939ab3446ccc2f9cb1de57a1ec47e379.zip
nix: handle versions past 2.9 (#4394)
Diffstat (limited to 'test/handler/test_nix_handler.vader')
-rw-r--r--test/handler/test_nix_handler.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/handler/test_nix_handler.vader b/test/handler/test_nix_handler.vader
index db6b9a4b..ee02fef2 100644
--- a/test/handler/test_nix_handler.vader
+++ b/test/handler/test_nix_handler.vader
@@ -85,6 +85,16 @@ Execute(The nix command should add 'log-format' option for nix version 2.9):
\ 'nix-instantiate --log-format internal-json --parse -',
\ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.9.0pre20211206_ignored'], '')
+Execute(The nix command should add 'log-format' option for nix version 2.10):
+ AssertEqual
+ \ 'nix-instantiate --log-format internal-json --parse -',
+ \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.10.0pre20221221_ignored'], '')
+
+Execute(The nix command should add 'log-format' option for nix version 2.20):
+ AssertEqual
+ \ 'nix-instantiate --log-format internal-json --parse -',
+ \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.20.0pre20221221_ignored'], '')
+
Execute(The nix command should add 'log-format' option for nix version 3.0):
AssertEqual
\ 'nix-instantiate --log-format internal-json --parse -',