diff mx/commands.py @ 5244:55ff4ba8d7b1

ignore src/share/tools directory in native build out-of-date check
author Doug Simon <doug.simon@oracle.com>
date Fri, 13 Apr 2012 23:57:07 +0200
parents b9db4fee6eb2
children 71ac4221b1b0
line wrap: on
line diff
--- a/mx/commands.py	Fri Apr 13 23:55:25 2012 +0200
+++ b/mx/commands.py	Fri Apr 13 23:57:07 2012 +0200
@@ -471,13 +471,15 @@
             timestamp = os.path.getmtime(timestampFile)
             sources = []
             for d in ['src', 'make']:
-                for root, _, files in os.walk(join(_graal_home, d)):
+                for root, dirnames, files in os.walk(join(_graal_home, d)):
                     # ignore <graal>/src/share/tools
-                    if root != join(_graal_home, 'src', 'share', 'tools'):
-                        sources += [join(root, name) for name in files]
+                    if root == join(_graal_home, 'src', 'share'):
+                        dirnames.remove('tools')
+                    sources += [join(root, name) for name in files]
             for f in sources:
                 if len(f) != 0 and os.path.getmtime(f) > timestamp:
                     mustBuild = True
+                    break
                     
         if not mustBuild:
             mx.log('[all files in src and make directories are older than ' + timestampFile[len(_graal_home) + 1:] + ' - skipping native build]')
@@ -774,7 +776,7 @@
             for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate, gateBuildLevel=vmbuild):
                 t = Task(str(test) + ':' + vmbuild)
                 if not test.test('graal'):
-                    t.abort(test.group + ' ' + test.name + ' Failed')
+                    t.abort(test.name + ' Failed')
                 tasks.append(t.stop())
         
         if args.jacocout is not None: