diff --git a/lisa/tools/lspci.py b/lisa/tools/lspci.py index 23d8f66a1d..969e3c045a 100644 --- a/lisa/tools/lspci.py +++ b/lisa/tools/lspci.py @@ -8,12 +8,7 @@ from lisa.executable import Tool from lisa.operating_system import Posix from lisa.tools import Echo -from lisa.util import ( - LisaException, - constants, - find_patterns_in_lines, - get_matched_str, -) +from lisa.util import LisaException, constants, find_patterns_in_lines, get_matched_str # Example output of lspci command - # lspci -m diff --git a/microsoft/testsuites/network/stress.py b/microsoft/testsuites/network/stress.py index c0f3d22ae6..985149de95 100644 --- a/microsoft/testsuites/network/stress.py +++ b/microsoft/testsuites/network/stress.py @@ -1,5 +1,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. +from time import sleep from typing import Any, cast from assertpy import assert_that @@ -274,6 +275,8 @@ def stress_sriov_with_max_nics_reboot_from_platform( for node in environment.nodes.list(): start_stop = node.features[StartStop] start_stop.restart() + # Add delay to wait for the network interface ready. + sleep(120) initialize_nic_info(environment) sriov_basic_test(environment) @@ -304,6 +307,8 @@ def stress_sriov_with_max_nics_stop_start_from_platform( start_stop = node.features[StartStop] start_stop.stop() start_stop.start() + # Add delay to wait for the network interface ready. + sleep(120) initialize_nic_info(environment) sriov_basic_test(environment)