mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 02:22:56 +01:00
test.ListCmd: Reduce debug logging
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
e11f626971
commit
476f501fbe
1 changed files with 3 additions and 3 deletions
|
|
@ -262,7 +262,7 @@ class ListCmd(TestCase): # export
|
||||||
|
|
||||||
def parse(self, lines):
|
def parse(self, lines):
|
||||||
def parse_line(line, fields):
|
def parse_line(line, fields):
|
||||||
slog(DEBUG, "parsing line >%s<" % line)
|
#slog(DEBUG, "parsing line >%s<" % line)
|
||||||
parsed = line.split('# ')
|
parsed = line.split('# ')
|
||||||
line = parsed[0].strip()
|
line = parsed[0].strip()
|
||||||
match = regex.search(line)
|
match = regex.search(line)
|
||||||
|
|
@ -270,8 +270,8 @@ class ListCmd(TestCase): # export
|
||||||
slog(INFO, "Ignoring unparseable line >%s<" % line)
|
slog(INFO, "Ignoring unparseable line >%s<" % line)
|
||||||
return None
|
return None
|
||||||
attribs = None if len(parsed) <= 1 else Options(parsed[1])
|
attribs = None if len(parsed) <= 1 else Options(parsed[1])
|
||||||
for k in range(0, len(fields)):
|
#for k in range(0, len(fields)):
|
||||||
slog(DEBUG, " match {} = >{}<".format(k+1, match.group(k+1)))
|
# slog(DEBUG, " match {} = >{}<".format(k+1, match.group(k+1)))
|
||||||
fields = {fields[k]: match.group(k+1) for k in range(0, len(fields)) }
|
fields = {fields[k]: match.group(k+1) for k in range(0, len(fields)) }
|
||||||
return self.Row(self, line=line, fields=fields, attribs=attribs)
|
return self.Row(self, line=line, fields=fields, attribs=attribs)
|
||||||
fields = self.row_info('fields')
|
fields = self.row_info('fields')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue