From: Daniel Dunbar Date: Wed, 21 Jan 2009 23:34:23 +0000 (+0000) Subject: Update CmpDriver to report missing commands. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=163f31a0194fcff8ccea6e1c2a495f58deb286aa;p=clang Update CmpDriver to report missing commands. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62728 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/CmpDriver b/utils/CmpDriver index cc4caad4f6..54209843df 100755 --- a/utils/CmpDriver +++ b/utils/CmpDriver @@ -152,7 +152,16 @@ def main(): differ = True # Compare commands. - for i,(a,b) in enumerate(zip(infoA.commands, infoB.commands)): + for i,(a,b) in enumerate(map(None, infoA.commands, infoB.commands)): + if a is None: + print 'A MISSING:',' '.join(b) + differ = True + continue + elif b is None: + print 'B MISSING:',' '.join(a) + differ = True + continue + diff = DriverZipperDiff(a,b) diffs = list(diff.getDiffs()) if diffs: @@ -169,7 +178,7 @@ def main(): print 'mismatch: A: %s' % aElt print ' B: %s' % bElt differ = True - + # Compare result codes. if infoA.exitCode != infoB.exitCode: print '-- EXIT CODES DIFFER -'