Skip to content

Commit

Permalink
removeme: check paths in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Tucker <[email protected]>
  • Loading branch information
dave-tucker committed Feb 5, 2025
1 parent 41d191b commit 1efbc91
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ jobs:
sh -c "dpkg --fsys-tarfile {} | tar -C test/.tmp \
--wildcards --extract '*boot*' '**/modules/*' --file -"
- name: DELETEME - List debian kernels
run: find test/.tmp -name 'vmlinuz-*'

- name: DELETEME - List debian kernel modules
run: find test/.tmp -maxdepth 5 -type d -ipath '*modules*'

- name: Run local integration tests
if: runner.os == 'Linux'
run: cargo xtask integration-test local
Expand Down
13 changes: 10 additions & 3 deletions xtask/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,20 @@ pub fn run(opts: Options) -> Result<()> {
.and_then(|name| name.to_str())
.ok_or_else(|| anyhow!("kernel_image file_name failed"))?;
let version = version.trim_start_matches("vmlinuz-");
let modules_dir = kernel_image
let parent = kernel_image
.parent()
.expect("unable to get parent directory from kernel_image")
.expect("unable to get parent directory from kernel_image");
let modules_dir = parent
.join("../usr/lib/modules/")
.join(version)
.canonicalize()
.with_context(|| format!("failed to canonicalize {version}"))?;
.with_context(|| {
format!(
"failed to canonicalize {}../usr/lib/modules/{}",
parent.display(),
version
)
})?;

let binaries = binaries(Some(&target))?;

Expand Down

0 comments on commit 1efbc91

Please sign in to comment.