Skip to content

Commit

Permalink
fix check step
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseifedotov committed Jan 30, 2025
1 parent 6d3730e commit 3ce70ee
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions update-agent/t/podman-runner.nu
Original file line number Diff line number Diff line change
Expand Up @@ -272,29 +272,14 @@ def "main run" [prog, mock_path] {
def "main check" [mock_path] {
let $mmcblk0 = $"($mock_path)/mmcblk0"
["run"
"download /dev/sda2 ./APP_b.after_ota.img"
"download /dev/sda19 ./SOFTWARE_LAYER_b.after_ota.img"
"download /dev/sda16 ./SYSTEM_LAYER_b.after_ota.img"
"download /dev/sda20 ./CACHE_LAYER_b.after_ota.img"
"download /dev/sda15 ./CUDA_LAYER_b.after_ota.img"
] | str join "\n" | guestfish --rw -a $mmcblk0


if not (cmp-xz-with-partition ./s3_bucket/app.xz APP_b.after_ota.img) {
log error "APP_b Test failed"
if not (cmp-img-with-partition $"($mock_path)/mnt/cuda_layer.img" ./CUDA_LAYER_b.after_ota.img) {
log error "CUDA_LAYER_b Test failed"
}

if not (cmp-img-with-partition ./s3_bucket/software_layer.img SOFTWARE_LAYER_b.after_ota.img) {
log error "SOFTWARE_LAYER_b Test failed"
}

if not (cmp-img-with-partition ./s3_bucket/system_layer.img SYSTEM_LAYER_b.after_ota.img) {
log error "SYSTEM_LAYER_b Test failed"
}

if not (cmp-img-with-partition ./s3_bucket/cache_layer.img CACHE_LAYER_b.after_ota.img) {
log error "CACHE_LAYER_b Test failed"
}
rm APP_b.after_ota.img
rm ./CUDA_LAYER_b.after_ota.img
}

export def "main clean" [mock_path] {
Expand Down

0 comments on commit 3ce70ee

Please sign in to comment.