diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2021-05-23 15:00:11 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2021-11-19 13:45:41 +0900 |
commit | cf4af351a61e01ad1110fcb8fcbead73c9d0850a (patch) | |
tree | 9f9a45146f5930f1792456a4c1c8d89468b85979 | |
parent | 18d7ec36f3a664174b46845d01bccab4eba6fc5b (diff) | |
download | rneovim-cf4af351a61e01ad1110fcb8fcbead73c9d0850a.tar.gz rneovim-cf4af351a61e01ad1110fcb8fcbead73c9d0850a.tar.bz2 rneovim-cf4af351a61e01ad1110fcb8fcbead73c9d0850a.zip |
fix: fix GZIP error
-rw-r--r-- | test/functional/legacy/011_autocommands_spec.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua index 0fa9290f3c..e40c29a400 100644 --- a/test/functional/legacy/011_autocommands_spec.lua +++ b/test/functional/legacy/011_autocommands_spec.lua @@ -72,7 +72,13 @@ describe('file reading, writing and bufnew and filter autocommands', function() prepare_gz_file('Xtestfile', text1) --execute('au FileChangedShell * echo "caught FileChangedShell"') feed_command('set bin') - feed_command("au FileReadPost *.gz '[,']!gzip -d") + if iswin() then + feed_command('let $GZIP = ""') + feed_command("au FileReadPost *.gz '[,']!gzip -d") + else + -- Note: GZIP= Does not work in Windows + feed_command("au FileReadPost *.gz '[,']!GZIP= gzip -d") + end -- Read and decompress the testfile. feed_command('$r Xtestfile.gz') expect('\n'..text1) |