diff options
author | dirkbaechle <devnull@localhost> | 2012-08-12 13:06:36 (GMT) |
---|---|---|
committer | dirkbaechle <devnull@localhost> | 2012-08-12 13:06:36 (GMT) |
commit | 4ae583161be1735d0450be17fe2383ec5c4f475e (patch) | |
tree | 70d51a5b45a13ff964e8dad6a9a423c0b341c68c /QMTest/TestSCons.py | |
parent | 780d9ca6577e5a15b4d4cfad111b74132c255be1 (diff) | |
download | SCons-4ae583161be1735d0450be17fe2383ec5c4f475e.zip SCons-4ae583161be1735d0450be17fe2383ec5c4f475e.tar.gz SCons-4ae583161be1735d0450be17fe2383ec5c4f475e.tar.bz2 |
- fixed directory/file fixtures for "general" mode
- added documentation for the testing framework
- converted two old tests from the "packaging" section to using fixtures as reference examples
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r-- | QMTest/TestSCons.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index 86c0dec..360a799 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -240,11 +240,6 @@ class TestSCons(TestCommon): pass else: os.chdir(script_dir) - else: - try: - self.script_srcdir = os.environ['PYTHON_SCRIPT_DIR'] - except KeyError: - pass if 'program' not in kw: kw['program'] = os.environ.get('SCONS') if not kw['program']: @@ -281,6 +276,11 @@ class TestSCons(TestCommon): if SCons.Node.FS.default_fs is None: SCons.Node.FS.default_fs = SCons.Node.FS.FS() + try: + self.script_srcdir = os.environ['PYTHON_SCRIPT_DIR'] + except KeyError: + pass + def Environment(self, ENV=None, *args, **kw): """ Return a construction Environment that optionally overrides |