self.assertNotEqual(cur_process_error_log_path, shared_error_log_path)
// We only logged a single error, so the files should both contain only that single log entry.
err_rx = \
timestamp: ([^\n]+)
args: ([^\n]+)
pid: {pid}
XXX
.format(pid=re.escape(str(pid)))with open(cur_process_error_log_path, "r") as cur_pid_file:
self.assertRegexpMatches(cur_pid_file.read(), err_rx)
with open(shared_error_log_path, "r") as shared_log_file:
self.assertRegexpMatches(shared_log_file.read(), err_rx)