Skip to content

Commit

Permalink
Fix CN test script, improve error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricio-ESP committed Nov 25, 2024
1 parent bf5b24f commit f0f019b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion tests/runs/CNmirrors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ const projectFolder = "project";

let installArgs = [];
installArgs.push(` -p ${path.join(os.homedir(), installFolder)}`); // Install Path
// installArgs.push(` -t ${targetList.join(",")}`); // Targets // removed to install for all targets
// installArgs.push(` -i ${idfVersionList.join(",")}`); // IDF versions Removed to install latest version
installArgs.push(` -m https://dl.espressif.com/github_assets`); // IDF tools mirror
installArgs.push(` --idf-mirror https://jihulab.com/esp-mirror`); // ESP-IDF mirror
installArgs.push(` -r true`); // recursive submodules init
installArgs.push(` -r false`); // recursive submodules init

const pathToIDFScript =
os.platform() !== "win32"
Expand Down
4 changes: 3 additions & 1 deletion tests/runs/CNmirrors2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ const projectFolder = "project";

let installArgs = [];
installArgs.push(` -p ${path.join(os.homedir(), installFolder)}`); // Install Path
installArgs.push(` -t ${targetList.join(",")}`); // Targets
installArgs.push(` -i ${idfVersionList.join(",")}`); // IDF versions
installArgs.push(` -m https://dl.espressif.cn/github_assets`); // IDF tools mirror
installArgs.push(` --idf-mirror https://jihulab.com/esp-mirror`); // ESP-IDF mirror
installArgs.push(` -r true`); // recursive submodules init
installArgs.push(` -r false`); // recursive submodules init

const pathToIDFScript =
os.platform() !== "win32"
Expand Down
4 changes: 2 additions & 2 deletions tests/runs/nonInteractiveInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const projectFolder = "project";

let installArgs = [];
installArgs.push(` -p ${path.join(os.homedir(), installFolder)}`); // Install Path
installArgs.push(` -t ${targetList.join(",")}`); // Targets (in case of multiple separate with ,)
installArgs.push(` -i ${idfVersionList.join(",")}`); // IDF versions (in case of multiple separate with ,)
installArgs.push(` -t ${targetList.join(",")}`); // Targets
installArgs.push(` -i ${idfVersionList.join(",")}`); // IDF versions
installArgs.push(` -m https://github.com`); // IDF tools mirror
installArgs.push(` --idf-mirror https://github.com`); // ESP-IDF mirror
installArgs.push(` -r true`); // recursive submodules init
Expand Down
4 changes: 2 additions & 2 deletions tests/runs/variation1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const projectFolder = "project";

let installArgs = [];
installArgs.push(` -p ${path.join(os.homedir(), installFolder)}`); // Install Path
installArgs.push(` -t ${targetList.join(",")}`); // Targets (in case of multiple separate with ,)
installArgs.push(` -i ${idfVersionList.join(",")}`); // IDF versions (in case of multiple separate with ,)
installArgs.push(` -t ${targetList.join(",")}`); // Targets
installArgs.push(` -i ${idfVersionList.join(",")}`); // IDF versions
installArgs.push(` -m https://github.com`); // IDF tools mirror
installArgs.push(` --idf-mirror https://github.com`); // ESP-IDF mirror
installArgs.push(` -r true`); // recursive submodules init
Expand Down
5 changes: 2 additions & 3 deletions tests/script/postInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ export function runPostInstallTest(
} catch {
logger.info("Error to start IDF terminal");
logger.info(testRunner.output);
throw new Error(
"One test in the chain failed, aborting the entire suite."
);
this.test.error(new Error("Error starting IDF Terminal"));
throw error;
}
});

Expand Down

0 comments on commit f0f019b

Please sign in to comment.