Only use zstd on windows when gnu tar is installed, otherwise use gzip due to bug #301

This commit is contained in:
Aiqiao Yan committed 2020-05-18 16:35:13 -04:00
1 parent 800a3d0a98
commit 3f105f84d2
3 files changed
+22 -12

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ test('gzip extract GNU tar on windows', async () => {
jest.spyOn(fs, 'existsSync').mockReturnValueOnce(false)
const isGnuMock = jest
.spyOn(utils, 'useGnuTar')
.spyOn(utils, 'isGnuTarInstalled')
.mockReturnValue(Promise.resolve(true))
const execMock = jest.spyOn(exec, 'exec')
const archivePath = `${process.env['windir']}\\fakepath\\cache.tar`