Skip to content

Commit f45fa5e

Browse files
committed
vmgenid: create new DTB files for unit tests
Our unit tests for creating FDT depends on DTB blobs that we create once and then we use as a reference to ensure that we don't make a change that breaks them. Now that we pass VMGenID via DeviceTree we need to recreate these blobs, because we modify the layout of the guest memory, so the memory node is suddenly different. Also, fix the code that we use to create these blobs. Since, we re-organized crates in the repo, it was trying to write to non-existent paths. Signed-off-by: Babis Chalios <[email protected]>
1 parent 5cde506 commit f45fa5e

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/vmm/src/arch/aarch64/fdt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ mod tests {
587587
// let mut output = fs::OpenOptions::new()
588588
// .write(true)
589589
// .create(true)
590-
// .open(path.join(format!("src/aarch64/{}", dtb_path)))
590+
// .open(path.join(format!("src/arch/aarch64/{}", dtb_path)))
591591
// .unwrap();
592592
// output.write_all(&current_dtb_bytes).unwrap();
593593
// }
@@ -649,7 +649,7 @@ mod tests {
649649
// let mut output = fs::OpenOptions::new()
650650
// .write(true)
651651
// .create(true)
652-
// .open(path.join(format!("src/aarch64/{}", dtb_path)))
652+
// .open(path.join(format!("src/arch/aarch64/{}", dtb_path)))
653653
// .unwrap();
654654
// output.write_all(&current_dtb_bytes).unwrap();
655655
// }
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)