Skip to content

Commit

Permalink
tests: secureboot: fix passing of kernel headers version
Browse files Browse the repository at this point in the history
Specifying the kernel headers version was not woriking.

Change-type: patch
Signed-off-by: Alex Gonzalez <alexg@balena.io>
  • Loading branch information
alexgg committed Nov 29, 2024
1 parent f1eda80 commit 6a80004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/suites/os/tests/secureboot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class secureBoot {
const srcDir = `${__dirname}/kernel-module-build/`
await fse.copy(srcDir, this.tmpDir);
let data = await fse.readFile(`${this.tmpDir}/docker-compose.yml`, 'utf-8')
const result = data.replace(/os_version:\s*\S+/, `os_version: ${this.module.headersVersion}`);
await fse.writeFile( `${this.tmpDir}/docker-compose.yaml`, result, 'utf-8')
const result = data.replace(/OS_VERSION:\s*\S+/, `OS_VERSION: ${this.module.headersVersion}`);
await fse.writeFile( `${this.tmpDir}/docker-compose.yml`, result, 'utf-8')
this.test.comment(`Using kernel headers version ${this.module.headersVersion}`)
}

Expand Down Expand Up @@ -538,7 +538,7 @@ module.exports = {
const impl = new testSecureBoot(new imxSecureBoot(test,
this.worker,
this.suite, this.os.image.path,
{"name": "", "headersVersion": "4.0.16"}));
{"name": "", "headersVersion": "6.0.49"}));
await impl.run(test);
},
},
Expand Down

0 comments on commit 6a80004

Please sign in to comment.