Skip to content

Commit

Permalink
Revert "vsock: Skip tests causing CI failure"
Browse files Browse the repository at this point in the history
This reverts commit cec57c9.
  • Loading branch information
stefano-garzarella committed Oct 10, 2024
1 parent 6da1575 commit 2d452a2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions vhost-device-vsock/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,6 @@ mod tests {
use std::fs::File;
use std::io::Write;
use tempfile::tempdir;
#[cfg(feature = "backend_vsock")]
use vsock::VsockListener;

impl VsockArgs {
fn from_args_unix(
Expand Down Expand Up @@ -1047,12 +1045,6 @@ mod tests {
#[cfg(feature = "backend_vsock")]
#[test]
fn test_vsock_server_vsock() {
if VsockListener::bind_with_cid_port(libc::VMADDR_CID_LOCAL, libc::VMADDR_PORT_ANY).is_err()
{
println!(" SKIPPED: AF_VSOCK is not available.");
return;
}

const CID: u64 = 3;
const CONN_TX_BUF_SIZE: u32 = 64 * 1024;
const QUEUE_SIZE: usize = 1024;
Expand Down
6 changes: 0 additions & 6 deletions vhost-device-vsock/src/thread_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,6 @@ mod tests {
#[cfg(feature = "backend_vsock")]
#[test]
fn test_vsock_thread_backend_vsock() {
if VsockListener::bind_with_cid_port(libc::VMADDR_CID_LOCAL, libc::VMADDR_PORT_ANY).is_err()
{
println!(" SKIPPED: AF_VSOCK is not available.");
return;
}

let _listener = VsockListener::bind_with_cid_port(VMADDR_CID_ANY, VSOCK_PEER_PORT).unwrap();
let backend_info = BackendType::Vsock(VsockProxyInfo {
forward_cid: 1,
Expand Down
8 changes: 0 additions & 8 deletions vhost-device-vsock/src/vhu_vsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ mod tests {
use tempfile::tempdir;
use vhost_user_backend::VringT;
use vm_memory::GuestAddress;
#[cfg(feature = "backend_vsock")]
use vsock::VsockListener;

const CONN_TX_BUF_SIZE: u32 = 64 * 1024;
const QUEUE_SIZE: usize = 1024;
Expand Down Expand Up @@ -503,12 +501,6 @@ mod tests {
#[cfg(feature = "backend_vsock")]
#[test]
fn test_vsock_backend_vsock() {
if VsockListener::bind_with_cid_port(libc::VMADDR_CID_LOCAL, libc::VMADDR_PORT_ANY).is_err()
{
println!(" SKIPPED: AF_VSOCK is not available.");
return;
}

const CID: u64 = 3;

let groups_list: Vec<String> = vec![String::from("default")];
Expand Down
6 changes: 0 additions & 6 deletions vhost-device-vsock/src/vhu_vsock_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,12 +1041,6 @@ mod tests {
#[cfg(feature = "backend_vsock")]
#[test]
fn test_vsock_thread_vsock_backend() {
if VsockListener::bind_with_cid_port(libc::VMADDR_CID_LOCAL, libc::VMADDR_PORT_ANY).is_err()
{
println!(" SKIPPED: AF_VSOCK is not available.");
return;
}

let groups: Vec<String> = vec![String::from("default")];
let cid_map: Arc<RwLock<CidMap>> = Arc::new(RwLock::new(HashMap::new()));

Expand Down

0 comments on commit 2d452a2

Please sign in to comment.