Skip to content

Commit

Permalink
tests: add py extension to bmpserver
Browse files Browse the repository at this point in the history
to help identify the file type. And apply black.

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind authored and pguibert6WIND committed Dec 2, 2024
1 parent b7ffd9e commit 15e1c45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/lib/topogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,15 +1296,15 @@ def start(self, log_file=None):

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,
stderr=err,
)

def stop(self):
self.run("pkill -f bmpserver")
self.run("pkill -f bmpserver.py")
return ""


Expand Down

0 comments on commit 15e1c45

Please sign in to comment.