Skip to content

Commit

Permalink
Update lspci.py
Browse files Browse the repository at this point in the history
Update lspci.py

Update lspci.py

Update lspci.py

Update lspci.py

Update stress.py

Update stress.py

Update stress.py
  • Loading branch information
SRIKKANTH committed Sep 16, 2024
1 parent be1313b commit 93a2b58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions lisa/tools/lspci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions microsoft/testsuites/network/stress.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 93a2b58

Please sign in to comment.