Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengfeihe committed Jul 7, 2024
1 parent e39de2b commit e754a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/run_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

PCAP_FILE_PATH = os.path.join("Tests", "Pcap++Test", "PcapExamples", "example.pcap")


def get_ip_address(interface):
addresses = psutil.net_if_addrs().get(interface)
if not addresses:
Expand All @@ -15,6 +16,7 @@ def get_ip_address(interface):
return address.address
return None


def main():
parser = argparse.ArgumentParser()
parser.add_argument("--interface", type=str, required=True, help="interface to use")
Expand Down
2 changes: 2 additions & 0 deletions ci/run_tests/run_tests_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
os.path.join("Tests", "Pcap++Test", "PcapExamples", "example.pcap")
)


def get_ip_address(interface):
addresses = psutil.net_if_addrs().get(interface)
if not addresses:
Expand All @@ -18,6 +19,7 @@ def get_ip_address(interface):
return address.address
return None


def find_interface():
completed_process = subprocess.run(
["tcpreplay.exe", "--listnics"],
Expand Down

0 comments on commit e754a22

Please sign in to comment.