Skip to content

Commit

Permalink
change option
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Aug 25, 2020
1 parent 2e4f4cf commit da159f7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tools/python/iutest_compile_error_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,15 @@ def parse_command_line():
default='gcc'
)
parser.add_argument(
'--verbose',
'--passthrough',
action='store_true',
help='print input message.'
)
parser.add_argument(
'--verbose',
action='store_true',
help='print input message when failed.'
)
parser.add_argument(
'--debug',
action='store_true',
Expand Down Expand Up @@ -291,7 +296,7 @@ def message(self):
prev = None
is_prev_required_from = False
for line in f:
if options.verbose:
if options.passthrough:
print(line.rstrip())
if re_fatal.match(line):
raise Exception(line)
Expand Down Expand Up @@ -353,7 +358,7 @@ def parse_vc(options, f):
msg = None
prev = None
for line in f:
if options.verbose:
if options.passthrough:
print(line.rstrip())
if re_fatal.match(line):
raise Exception(line)
Expand Down Expand Up @@ -487,6 +492,9 @@ def iutest(l):
for msg in unexpected:
test_result(False, "Unexpected error: " + msg.message, msg)
result = False
if not result:
if self.verbose:
dump_list(l)
return result


Expand Down Expand Up @@ -520,7 +528,7 @@ def parse_output(options):

if options.debug:
dump_list(l)
if options.verbose:
if options.passthrough:
print('----')
return iutest(l)

Expand Down

0 comments on commit da159f7

Please sign in to comment.