Skip to content

Commit

Permalink
Add a --skipCheckBinaries arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus committed Dec 27, 2024
1 parent dfead67 commit 22391b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/job-compile-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
run: yarn test
working-directory: Extension

# These tests don't require the binary.
- name: Run SingleRootProject tests
run: yarn test --scenario=SingleRootProject
run: yarn test --scenario=SingleRootProject --skipCheckBinaries
working-directory: Extension

# NOTE : We can't run the test that require the native binary files
Expand Down
3 changes: 3 additions & 0 deletions Extension/.scripts/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ export async function checkDTS() {
}

export async function checkBinaries() {
if ($switches.includes('--skipCheckBinaries')) {
return false;
}
let failing = false;
failing = !await assertAnyFile(['bin/cpptools.exe', 'bin/cpptools']) && (quiet || warn(`The native binary files are not present. You should either build or install the native binaries\n\n.`)) || failing;

Expand Down

0 comments on commit 22391b0

Please sign in to comment.