mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
test-network: introduce dump_dnsmasq_log_file()
This commit is contained in:
parent
4862fb693d
commit
2616b5285f
@ -526,6 +526,11 @@ def stop_by_pid_file(pid_file):
|
||||
def stop_dnsmasq():
|
||||
stop_by_pid_file(dnsmasq_pid_file)
|
||||
|
||||
def dump_dnsmasq_log_file():
|
||||
if os.path.exists(dnsmasq_log_file):
|
||||
with open (dnsmasq_log_file) as in_file:
|
||||
print(in_file.read())
|
||||
|
||||
def search_words_in_dnsmasq_log(words, show_all=False):
|
||||
if os.path.exists(dnsmasq_log_file):
|
||||
with open (dnsmasq_log_file) as in_file:
|
||||
|
Loading…
Reference in New Issue
Block a user