performance-metrics: Add backing_files=on for overlay tests
The backing_files option defaults to false, so qcow2 overlay tests fail with MaxNestingDepthExceeded. Pass backing_files=on when the test file is an overlay. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
parent
20f5cadb6f
commit
ecb971a491
1 changed files with 7 additions and 1 deletions
|
|
@ -413,6 +413,12 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 {
|
|||
.unwrap()
|
||||
.to_string();
|
||||
|
||||
let mut test_disk_arg =
|
||||
format!("path={test_file},queue_size={queue_size},num_queues={num_queues}");
|
||||
if test_file == OVERLAY_WITH_QCOW2_BACKING || test_file == OVERLAY_WITH_RAW_BACKING {
|
||||
test_disk_arg.push_str(",backing_files=on");
|
||||
}
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", &format!("boot={num_queues}")])
|
||||
.args(["--memory", "size=4G"])
|
||||
|
|
@ -430,7 +436,7 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 {
|
|||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||
)
|
||||
.as_str(),
|
||||
format!("path={test_file},queue_size={queue_size},num_queues={num_queues}").as_str(),
|
||||
test_disk_arg.as_str(),
|
||||
])
|
||||
.default_net()
|
||||
.args(["--api-socket", &api_socket])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue