Skip to content

Commit b053f95

Browse files
rose-maddaleax
andauthored
test(build): fix test failure introduced on windows (#956)
Co-authored-by: Anna Henningsen <[email protected]>
1 parent f79ed87 commit b053f95

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.evergreen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ functions:
318318
. preload.sh
319319
curl -sSfL "$ARTIFACT_URL" > mongosh.zip
320320
unzip mongosh.zip
321-
./bin/mongosh --smokeTests
321+
./mongosh-*/bin/mongosh --smokeTests
322322
}
323323
test_artifact_rpmextract:
324324
- command: shell.exec

.evergreen/test-package-win32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
if echo "$ARTIFACT_URL" | grep -q .zip; then
33
curl -sSfL "$ARTIFACT_URL" > mongosh.zip
44
export ARTIFACT_PATH="$PWD/mongosh.zip"
5-
(cd /cygdrive/c/Program\ Files/ && rm -rf mongosh && mkdir mongosh && cd mongosh && unzip "$ARTIFACT_PATH" && chmod -v +x bin/*)
5+
(cd /cygdrive/c/Program\ Files/ && rm -rf mongosh && mkdir mongosh && cd mongosh && unzip "$ARTIFACT_PATH" && mv -v */bin . && chmod -v +x bin/*)
66
export PATH="/cygdrive/c/Program Files/mongosh/bin:$PATH"
77
else
88
curl -sSfL "$ARTIFACT_URL" > mongosh.msi

packages/build/src/packaging/package/tarball.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('package tarball', () => {
1414
const tarname = path.basename(tarball.path).replace(/\.tgz$/, '');
1515

1616
const unzip = spawnSync('tar', [
17-
'tf', tarball.path
17+
'tf', tarball.path, ...(process.platform === 'win32' ? ['--force-local'] : [])
1818
], { encoding: 'utf-8' });
1919
expect(unzip.error).to.be.undefined;
2020
expect(unzip.stderr).to.be.empty;

0 commit comments

Comments
 (0)