Skip to content

Commit 7ff31d9

Browse files
committed
suites: e2e: pass artifacts to worker if defined
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]>
1 parent a0db950 commit 7ff31d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

suites/e2e/suite.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ module.exports = {
190190
// Configure OS image
191191
await this.os.configure();
192192

193+
if(this.suite.options.artifacts !== undefined){
194+
// extra artifacts "artifacts" are defined in the config.js of the suite
195+
// these artifacts must be in the "suites" directory in the config.js - so you must copy them into suites before
196+
// running the tests if these are build time artifacts
197+
console.log(`Sending extra artifact folder: ${this.suite.options.artifacts} to worker...`)
198+
await this.worker.sendFile(`${__dirname}/${this.suite.options.artifacts}`,'/data/', 'worker');
199+
}
200+
193201
// Retrieving journalctl logs - Uncomment if needed for debugging
194202
// Overkill quite frankly, since we aren't testing the OS and if testbot fails e2e
195203
// suite due to h/w issues then archiveLogs will block suite teardown frequently

0 commit comments

Comments
 (0)