diff options
author | w0rp <devw0rp@gmail.com> | 2017-09-14 00:11:17 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-09-14 00:11:17 +0100 |
commit | a59d1ddbf39fac6463c3b8748faf2651c9f9130d (patch) | |
tree | 0dd1f6c5736ee93be00b06eec3dcdcc517ffb633 /test/handler/test_ansible_lint_handler.vader | |
parent | 71c2e65d6468bbbc2d08236d7dda0e3876613822 (diff) | |
download | ale-a59d1ddbf39fac6463c3b8748faf2651c9f9130d.zip |
Make temporary file detection work on just about all platforms
Diffstat (limited to 'test/handler/test_ansible_lint_handler.vader')
-rw-r--r-- | test/handler/test_ansible_lint_handler.vader | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handler/test_ansible_lint_handler.vader b/test/handler/test_ansible_lint_handler.vader index b14b1f63..3a86429c 100644 --- a/test/handler/test_ansible_lint_handler.vader +++ b/test/handler/test_ansible_lint_handler.vader @@ -16,7 +16,7 @@ Execute(The ansible-lint handler should handle basic errors): \ }, \ ], \ ale_linters#ansible#ansible_lint#Handle(bufnr(''), [ - \ '/tmp/vxepmGL/1/main.yml:35: [EANSIBLE0002] Trailing whitespace', + \ fnamemodify(tempname(), ':h') . '/main.yml:35: [EANSIBLE0002] Trailing whitespace', \ ]) Execute (The ansible-lint handler should handle names with spaces): @@ -30,7 +30,7 @@ Execute (The ansible-lint handler should handle names with spaces): \ }, \ ], \ ale_linters#ansible#ansible_lint#Handle(bufnr(''), [ - \ '/tmp/vxepm GL/1/main.yml:6:6: E111 indentation is not a multiple of four', + \ fnamemodify(tempname(), ':h') . '/main.yml:6:6: E111 indentation is not a multiple of four', \ ]) Execute (The ansible-lint handler should ignore errors from other files): |