Skip to content

Commit c6f6e7c

Browse files
author
bweigel
committed
skip test if no docker is available
1 parent 2d7953b commit c6f6e7c

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

test.js

+20-16
Original file line numberDiff line numberDiff line change
@@ -1371,22 +1371,26 @@ test(
13711371
{ skip: !canUseDocker() }
13721372
);
13731373

1374-
test('py3.6 uses download cache with dockerizePip + cacheLocation option', t => {
1375-
process.chdir('tests/base');
1376-
const path = npm(['pack', '../..']);
1377-
npm(['i', path]);
1378-
sls([
1379-
'--useDownloadCache=true',
1380-
'--dockerizePip=true',
1381-
'--cacheLocation=.requirements-cache',
1382-
'package'
1383-
]);
1384-
t.true(
1385-
pathExistsSync(`.requirements-cache${sep}downloadCacheslspyc${sep}http`),
1386-
'cache directoy exists'
1387-
);
1388-
t.end();
1389-
});
1374+
test(
1375+
'py3.6 uses download cache with dockerizePip + cacheLocation option',
1376+
t => {
1377+
process.chdir('tests/base');
1378+
const path = npm(['pack', '../..']);
1379+
npm(['i', path]);
1380+
sls([
1381+
'--useDownloadCache=true',
1382+
'--dockerizePip=true',
1383+
'--cacheLocation=.requirements-cache',
1384+
'package'
1385+
]);
1386+
t.true(
1387+
pathExistsSync(`.requirements-cache${sep}downloadCacheslspyc${sep}http`),
1388+
'cache directoy exists'
1389+
);
1390+
t.end();
1391+
},
1392+
{ skip: !canUseDocker() }
1393+
);
13901394

13911395
test('py3.6 uses static and download cache', t => {
13921396
process.chdir('tests/base');

0 commit comments

Comments
 (0)