Hi Diego,

    This is a backport from trunk to fix a problem in validate_failures.py
when testing a cross compiler.

-Doug

2012-03-01   Doug Kwan  <dougk...@google.com>

        Backport r184357 from trunk
        2012-02-17   Doug Kwan  <dougk...@google.com>

                * contrib/testsuite-management/validate_failures.py
                (GetMakefileValue): Check for cross compilers.

Index: contrib/testsuite-management/validate_failures.py
===================================================================
--- contrib/testsuite-management/validate_failures.py   (revision 184772)
+++ contrib/testsuite-management/validate_failures.py   (working copy)
@@ -146,7 +146,8 @@ def GetMakefileValue(makefile_name, value_name):
 def ValidBuildDirectory(builddir, target):
   if (not os.path.exists(builddir) or
       not os.path.exists('%s/Makefile' % builddir) or
-      not os.path.exists('%s/build-%s' % (builddir, target))):
+      (not os.path.exists('%s/build-%s' % (builddir, target)) and
+       not os.path.exists('%s/%s' % (builddir, target)))):
     return False
   return True
 

--
This patch is available for review at http://codereview.appspot.com/5720047

Reply via email to