mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Amend unit tests
This commit is contained in:
parent
e6b5cf91d5
commit
9c76d73463
1 changed files with 7 additions and 0 deletions
|
@ -115,8 +115,15 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
|
||||||
);
|
);
|
||||||
|
|
||||||
if (process.env['RUNNER_OS'] === 'linux') {
|
if (process.env['RUNNER_OS'] === 'linux') {
|
||||||
|
Object.defineProperty(utils, 'IS_LINUX', {
|
||||||
|
value: () => {
|
||||||
|
jest.fn().mockReturnValue(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
computeKeysSpy.mockImplementation(() => 'Ubuntu-20.4');
|
computeKeysSpy.mockImplementation(() => 'Ubuntu-20.4');
|
||||||
}
|
}
|
||||||
|
|
||||||
await cacheDistributor.restoreCache();
|
await cacheDistributor.restoreCache();
|
||||||
|
|
||||||
if (process.env['RUNNER_OS'] === 'linux') {
|
if (process.env['RUNNER_OS'] === 'linux') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue