tests: add py extension to bmpserver

to help identify the file type. And apply black.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
Louis Scalbert 2024-11-20 11:23:51 +01:00 committed by Philippe Guibert
parent 1ea8ba5902
commit bbf8ee1769
2 changed files with 3 additions and 5 deletions

View File

@ -80,9 +80,7 @@ def main():
while len(data) > BMPMsg.MIN_LEN:
data = BMPMsg.dissect(data, log_file=LOG_FILE)
timestamp_print(
f"Finished dissecting data from {client_address}"
)
timestamp_print(f"Finished dissecting data from {client_address}")
except Exception as e:
timestamp_print(f"{e}")

View File

@ -1296,7 +1296,7 @@ class TopoBMPCollector(TopoHost):
with open(log_err, "w") as err:
self.run(
"{}/bmp_collector/bmpserver -a {} -p {} {}&".format(
"{}/bmp_collector/bmpserver.py -a {} -p {} {}&".format(
CWD, self.ip, self.port, log_arg
),
stdout=None,
@ -1304,7 +1304,7 @@ class TopoBMPCollector(TopoHost):
)
def stop(self):
self.run("pkill -f bmpserver")
self.run("pkill -f bmpserver.py")
return ""