from log import RED, single_line_delim, double_line_delim
import ipaddress
from subprocess import check_output, CalledProcessError
from log import RED, single_line_delim, double_line_delim
import ipaddress
from subprocess import check_output, CalledProcessError
try:
# we don't call test_type(val) because it is a packed value.
return '{!s} ({!s})'.format(val, str(
ipaddress.ip_address(val)))
try:
# we don't call test_type(val) because it is a packed value.
return '{!s} ({!s})'.format(val, str(
ipaddress.ip_address(val)))
def on_crash(self, core_path):
self.logger.error("Core file present, debug with: gdb %s %s",
def on_crash(self, core_path):
self.logger.error("Core file present, debug with: gdb %s %s",
check_core_path(self.logger, core_path)
self.logger.error("Running `file %s':", core_path)
try:
check_core_path(self.logger, core_path)
self.logger.error("Running `file %s':", core_path)
try: