[dotest] Fix syntax error and typo.

Python uses `elif` rather than `else if`. Fixes r329889.

llvm-svn: 329890
This commit is contained in:
Jonas Devlieghere 2018-04-12 09:35:17 +00:00
parent 1bf22e7722
commit 4955c77c2d
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ def parseOptionsAndInitTestdirs():
if args.dsymutil:
os.environ['DSYMUTIL'] = args.dsymutil
else if platform_system == 'Darwin':
elif platform_system == 'Darwin':
os.environ['DSYMUTIL'] = seven.get_command_output(
'xcrun -find -toolchain default dsymutil')

View File

@ -83,7 +83,7 @@ def create_parser():
help=textwrap.dedent('''Specify the extra flags to be passed to the toolchain when building the inferior programs to be debugged
suggestions: do not lump the "-A arch1 -A arch2" together such that the -E option applies to only one of the architectures'''))
group.add_argument('--dsymutil', metavar='dsymutil', dest='dsymutil', help=textwrap.dedent('Specify Which dsymutil to use.'))
group.add_argument('--dsymutil', metavar='dsymutil', dest='dsymutil', help=textwrap.dedent('Specify which dsymutil to use.'))
# Test filtering options
group = parser.add_argument_group('Test filtering options')