[Lldb-commits] [lldb] r329890 - [dotest] Fix syntax error and typo.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 12 02:35:17 PDT 2018


Author: jdevlieghere
Date: Thu Apr 12 02:35:17 2018
New Revision: 329890

URL: http://llvm.org/viewvc/llvm-project?rev=329890&view=rev
Log:
[dotest] Fix syntax error and typo.

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

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/dotest.py
    lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=329890&r1=329889&r2=329890&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Thu Apr 12 02:35:17 2018
@@ -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')
 

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py?rev=329890&r1=329889&r2=329890&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest_args.py Thu Apr 12 02:35:17 2018
@@ -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')




More information about the lldb-commits mailing list