Skip to content

Commit

Permalink
Fix: Generate build dir before parse tests
Browse files Browse the repository at this point in the history
If the parsing errors test was fired before the other test, the build
directory was missing, resulting in random failures:

  EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open '/home/runner/work/vscode-bitbake/vscode-bitbake/integration-tests/project-folder/build/conf/bblayers.conf'
  • Loading branch information
deribaucourt committed Nov 10, 2023
1 parent f7cc981 commit fa1d843
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration-tests/src/tests/bitbake-parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ suite('Bitbake Commands Test Suite', () => {
while (vscode.workspace.workspaceFolders === undefined || vscode.workspace.workspaceFolders?.length === 0) {
await delay(100)
}
// Generate the build directory for the addLayer functions to work
await vscode.commands.executeCommand('bitbake.parse-recipes')
})

afterEach(function () {
Expand Down

0 comments on commit fa1d843

Please sign in to comment.