Skip to content

Commit

Permalink
Add log to investigate failure on build command
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricio-ESP committed Nov 11, 2024
1 parent de900a9 commit e966f99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/script/postInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ export function runPostInstallTest(
expect(testRunner.output).to.include("main");

logger.info("sample project creation Passed");
testRunner.output = "";
});

it("Should set the target", async function () {
/**
* This test attempts to set a target MCU for the project created in the previous test.
*/
this.timeout(600000);
testRunner.output = "";
testRunner.sendInput(`idf.py set-target ${validTarget}\r`);

const targetSet = await testRunner.waitForOutput(
Expand All @@ -102,7 +102,6 @@ export function runPostInstallTest(
expect(testRunner.output).to.include("Generating done");

logger.info("Set Target Passed");
testRunner.output = "";
});

it("Should build project for the selected target", async function () {
Expand All @@ -111,6 +110,9 @@ export function runPostInstallTest(
* The test is successful if the success message is printed in the terminal.
*/
this.timeout(300000);
testRunner.output = "";
testRunner.sendInput("ls\r");
logger.info("Sending build command");
testRunner.sendInput("idf.py build\r");

const buildComplete = await testRunner.waitForOutput(
Expand Down

0 comments on commit e966f99

Please sign in to comment.