From 77c2edcacb747952d43eb50a12e34040d7b61d42 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 14 May 2021 21:54:52 +0900 Subject: fix: remove previous executed directories to execute tests locally --- test/functional/legacy/packadd_spec.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/functional') diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua index 48cd3ef9f8..4f9f5a0237 100644 --- a/test/functional/legacy/packadd_spec.lua +++ b/test/functional/legacy/packadd_spec.lua @@ -20,6 +20,9 @@ describe('packadd', function() func SetUp() let s:topdir = expand(getcwd() . '/Xdir') + if isdirectory(s:topdir) + call delete(s:topdir, 'rf') + endif exe 'set packpath=' . s:topdir let s:plugdir = expand(s:topdir . '/pack/mine/opt/mytest') endfunc -- cgit From cf4af351a61e01ad1110fcb8fcbead73c9d0850a Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 23 May 2021 15:00:11 +0900 Subject: fix: fix GZIP error --- test/functional/legacy/011_autocommands_spec.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/functional') 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) -- cgit From 9bcbb7f9d24072d05671f56a3bca0ce3937ce0c5 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 24 May 2021 11:21:13 +0900 Subject: fix: shell problem --- test/functional/legacy/011_autocommands_spec.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test/functional') diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua index e40c29a400..79a1e61b12 100644 --- a/test/functional/legacy/011_autocommands_spec.lua +++ b/test/functional/legacy/011_autocommands_spec.lua @@ -72,13 +72,12 @@ 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') - 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") + feed_command("call setenv('GZIP', v:null)") + if not iswin() then + -- Ignore non standard shell configuration + feed_command('set shell=sh') end + feed_command("au FileReadPost *.gz '[,']!gzip -d") -- Read and decompress the testfile. feed_command('$r Xtestfile.gz') expect('\n'..text1) -- cgit From 2c431943d663ee9bbd0434a2b34180bcf6a058e9 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 13 Jun 2021 11:51:12 +0900 Subject: fix: remove unneeded gzip check --- test/functional/legacy/011_autocommands_spec.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test/functional') diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua index 79a1e61b12..0fa9290f3c 100644 --- a/test/functional/legacy/011_autocommands_spec.lua +++ b/test/functional/legacy/011_autocommands_spec.lua @@ -72,11 +72,6 @@ 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("call setenv('GZIP', v:null)") - if not iswin() then - -- Ignore non standard shell configuration - feed_command('set shell=sh') - end feed_command("au FileReadPost *.gz '[,']!gzip -d") -- Read and decompress the testfile. feed_command('$r Xtestfile.gz') -- cgit