Skip to content

Commit 2717bcf

Browse files
committed
copy mac shipit logs
1 parent 0edeb32 commit 2717bcf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/compass-e2e-tests/tests/auto-update.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import fs from 'fs';
12
import { expect } from 'chai';
23
import {
34
init,
45
cleanup,
56
Selectors,
67
screenshotPathName,
78
} from '../helpers/compass';
9+
import { LOG_PATH } from '../helpers/test-runner-paths';
810

911
describe('Auto-update', function () {
1012
it('auto-update from', async function () {
@@ -42,6 +44,14 @@ describe('Auto-update', function () {
4244
} finally {
4345
await browser.screenshot(screenshotPathName('auto-update-from'));
4446
await cleanup(compass);
47+
if (process.platform === 'darwin') {
48+
for (const filename of ['ShipIt_stderr.log', 'ShipIt_stderr.log']) {
49+
fs.copyFileSync(
50+
`${process.env.HOME}/Library/Caches/com.mongodb.compass.dev.ShipIt/${filename}`,
51+
`${LOG_PATH}/${filename}`
52+
);
53+
}
54+
}
4555
}
4656

4757
if (process.env.AUTO_UPDATE_UPDATABLE === 'true') {

0 commit comments

Comments
 (0)