Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_logging.py
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
# check that -nodebuglogfile disables logging | # check that -nodebuglogfile disables logging | ||||
self.stop_node(0) | self.stop_node(0) | ||||
os.unlink(default_log_path) | os.unlink(default_log_path) | ||||
assert not os.path.isfile(default_log_path) | assert not os.path.isfile(default_log_path) | ||||
self.start_node(0, ["-nodebuglogfile"]) | self.start_node(0, ["-nodebuglogfile"]) | ||||
assert not os.path.isfile(default_log_path) | assert not os.path.isfile(default_log_path) | ||||
# just sanity check no crash here | # just sanity check no crash here | ||||
self.stop_node(0) | self.restart_node(0, ["-debuglogfile={}".format(os.devnull)]) | ||||
self.start_node(0, ["-debuglogfile={}".format(os.devnull)]) | |||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
LoggingTest().main() | LoggingTest().main() |