Skip to content

Commit

Permalink
suites: e2e: pass artifacts to worker if defined
Browse files Browse the repository at this point in the history
Artifacts are needed to program some device types, like the CM4 with
secure boot support.

Change-type: patch
Signed-off-by: Alex Gonzalez <[email protected]>
  • Loading branch information
alexgg committed Jun 26, 2024
1 parent a0db950 commit 7ff31d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions suites/e2e/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ module.exports = {
// Configure OS image
await this.os.configure();

if(this.suite.options.artifacts !== undefined){
// extra artifacts "artifacts" are defined in the config.js of the suite
// these artifacts must be in the "suites" directory in the config.js - so you must copy them into suites before
// running the tests if these are build time artifacts
console.log(`Sending extra artifact folder: ${this.suite.options.artifacts} to worker...`)
await this.worker.sendFile(`${__dirname}/${this.suite.options.artifacts}`,'/data/', 'worker');
}

// Retrieving journalctl logs - Uncomment if needed for debugging
// Overkill quite frankly, since we aren't testing the OS and if testbot fails e2e
// suite due to h/w issues then archiveLogs will block suite teardown frequently
Expand Down

0 comments on commit 7ff31d9

Please sign in to comment.