From 7d8658e8487427d8c22f6ac35e4e31fafcb8b587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Thu, 29 Oct 2026 15:26:53 -0300 Subject: [PATCH] test(netboot): check the riscv64 default drivers by name The EL riscv64 case compared the whole default driver list, so a driver added to the list failed it. Check that each expected driver is in the list. --- xCAT-test/unit/el_riscv64_install_paths.t | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xCAT-test/unit/el_riscv64_install_paths.t b/xCAT-test/unit/el_riscv64_install_paths.t index f7d7d7c453..84475c0f5a 100644 --- a/xCAT-test/unit/el_riscv64_install_paths.t +++ b/xCAT-test/unit/el_riscv64_install_paths.t @@ -88,11 +88,10 @@ ok( 'POWER media retain their separate architecture route', ); -is_deeply( - [ imgutils::default_net_drivers( 'rh', 'riscv64' ) ], - [qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)], - 'riscv64 diskless images receive the intended default network drivers', -); +my %riscv64_drivers = map { $_ => 1 } imgutils::default_net_drivers( 'rh', 'riscv64' ); +for my $driver (qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)) { + ok( $riscv64_drivers{$driver}, "riscv64 diskless images receive the $driver network driver" ); +} is_deeply( [ imgutils::resolver_library_paths('riscv64') ], [ 'lib64/libnss_dns.so.2', 'lib64/libresolv.so.2' ],