diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-09-03 18:40:10 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-09-03 18:40:49 (GMT) |
commit | bc3b2a2e7a70e597390a464ed19a564512f96e69 (patch) | |
tree | 2e32d6df4c729fd6433cdd8df8f417ff4c3a8f51 /BuildTools/SCons/Tools | |
parent | eb50ea03ab7fc41610a8945002fe19dd30ffb5d7 (diff) | |
download | swift-bc3b2a2e7a70e597390a464ed19a564512f96e69.zip swift-bc3b2a2e7a70e597390a464ed19a564512f96e69.tar.bz2 |
Added SCons flag to ignore test result.
Diffstat (limited to 'BuildTools/SCons/Tools')
-rw-r--r-- | BuildTools/SCons/Tools/Test.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/BuildTools/SCons/Tools/Test.py b/BuildTools/SCons/Tools/Test.py index 978e0d2..883da45 100644 --- a/BuildTools/SCons/Tools/Test.py +++ b/BuildTools/SCons/Tools/Test.py @@ -9,9 +9,12 @@ def generate(env) : # Special support for unittest checker if is_checker and env.get("checker_report", False) : params = " --xml > " + os.path.join(target[0].dir.path, "checker-report.xml") - + + ignore_prefix = "" + if env.get("TEST_IGNORE_RESULT", False) : + ignore_prefix = "-" env.Command("**dummy**", target, - SCons.Action.Action(env.get("TEST_RUNNER", "") + cmd + " " + params, cmdstr = "$TESTCOMSTR")) + SCons.Action.Action(ignore_prefix + env.get("TEST_RUNNER", "") + cmd + " " + params, cmdstr = "$TESTCOMSTR")) env.AddMethod(registerTest, "Test") |