)
if 'test_changes' in COMMAND_LINE_TARGETS and not env.has_key('only_tests'):
- env['only_tests'] = " ".join(x.abspath for x in SparseTestHack.findSCMChanges())
+ import SparseTestHack
+ env['only_tests'] = " ".join(x.abspath for x in SparseTestHack.findSCMChanges(env))
if env.has_key('only_tests') : env['sparse_tests'] = True
Export('env')
-import SCons.Node, SCons.Node.FS, SCons.Util, SCons.Errors
+import SCons.Node, SCons.Node.FS, SCons.Util, SCons.Errors, os
#####################################################################
# This IS a hack .. but a very useful one: The hack will remove the
raise SCons.Errors.StopError("Unknown unit tests (only_tests): %s."
% ", ".join("`%s'" % x for x in only_tests))
-def findSCMChanges():
+def findSCMChanges(env):
def scmchanges(dir):
if os.popen("cd %s; svnversion" % dir.abspath).read().strip() == "exported":