We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ddf17 commit 1d2b2f3Copy full SHA for 1d2b2f3
tests/validation/create_pcap_file/netsniff.py
@@ -2,6 +2,7 @@
2
# Copyright 2025 Intel Corporation
3
import logging
4
import os
5
+from datetime import datetime
6
from time import sleep
7
8
from mfd_connect.exceptions import ConnectionCalledProcessError
@@ -37,7 +38,7 @@ def __init__(
37
38
self.host = host
39
self.test_name = test_name
40
self.pcap_dir = pcap_dir
- self.pcap_file = os.path.join(pcap_dir, f"{test_name}.pcap")
41
+ self.pcap_file = os.path.join(pcap_dir, f"{test_name}_{datetime.now().strftime('%Y-%m-%d_%H%M%S')}.pcap")
42
if interface is not None:
43
self.interface = interface
44
else:
0 commit comments