summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorDaniel Moody <dmoody256@gmail.com>2018-01-17 04:31:47 (GMT)
committerDaniel Moody <dmoody256@gmail.com>2018-01-17 04:31:47 (GMT)
commit74080a2f9ce5595a7fb9d88433cec9c83c99969c (patch)
tree3c709cd9e1ed3e0e0fd9e0ef6ed4ae8ffb35bd97 /QMTest
parenta90dd653a51ac7be36122a456b3667fe45d30154 (diff)
downloadSCons-74080a2f9ce5595a7fb9d88433cec9c83c99969c.zip
SCons-74080a2f9ce5595a7fb9d88433cec9c83c99969c.tar.gz
SCons-74080a2f9ce5595a7fb9d88433cec9c83c99969c.tar.bz2
moved coverage check for tests to common location.
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index f0d25cb..ef907d8 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -1036,6 +1036,11 @@ SConscript( sconscript )
# to use cygwin compilers on cmd.exe -> uncomment following line
#Configure_lib = 'm'
+ def coverage_run(self):
+ """ Check if the the tests are being run under coverage.
+ """
+ return 'COVERAGE_PROCESS_START' in os.environ or 'COVERAGE_FILE' in os.environ
+
def skip_if_not_msvc(self, check_platform=True):
""" Check whether we are on a Windows platform and skip the
test if not. This check can be omitted by setting