tests: Add clippy check for integration test building

Ensure that we try and keep the integration tests clippy clean.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-01-25 11:14:26 +00:00 committed by Sebastien Boeuf
parent 0655f25da4
commit 58009af85d
2 changed files with 5 additions and 2 deletions

View File

@ -43,3 +43,6 @@ jobs:
- name: Clippy (mshv)
run: cargo clippy --all --all-targets --no-default-features --tests --features "mshv" -- -D warnings
- name: Clippy (integration tests)
run: cargo clippy --all --all-targets --tests --features "integration_tests" -- -D warnings

View File

@ -447,8 +447,8 @@ mod tests {
.expect("Expect device mapper nodes to be ready");
self.osdisk_path = format!("/dev/mapper/{}", windows_snapshot);
self.windows_snapshot_cow = windows_snapshot_cow.clone();
self.windows_snapshot = windows_snapshot.clone();
self.windows_snapshot_cow = windows_snapshot_cow;
self.windows_snapshot = windows_snapshot;
}
fn disk(&self, disk_type: DiskType) -> Option<String> {