diff options
author | Mats Wichmann <mats@linux.com> | 2021-07-21 16:22:18 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-08-24 15:01:28 (GMT) |
commit | 31518aea4593ae452b73c7acd7e48d604f59d806 (patch) | |
tree | f1ab44eac19588253c3ce2a2ee028f035570962c /test/Repository/SConscript.py | |
parent | 370565d50c1c69d17b207021baa6ea608182222d (diff) | |
download | SCons-31518aea4593ae452b73c7acd7e48d604f59d806.zip SCons-31518aea4593ae452b73c7acd7e48d604f59d806.tar.gz SCons-31518aea4593ae452b73c7acd7e48d604f59d806.tar.bz2 |
tests: use framework for platform-specific defines
Tweaked some tests which directly set values for _exe, _obj,
which are available from the framework. Done for consistency,
none of these were doing these wrong.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Repository/SConscript.py')
-rw-r--r-- | test/Repository/SConscript.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/test/Repository/SConscript.py b/test/Repository/SConscript.py index 1482800..709f1ca 100644 --- a/test/Repository/SConscript.py +++ b/test/Repository/SConscript.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # -# __COPYRIGHT__ +# MIT License +# +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -20,25 +22,16 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - -__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" """ Test how we handle SConscript calls when using a Repository. """ import sys -import TestSCons - -if sys.platform == 'win32': - _exe = '.exe' -else: - _exe = '' +from TestSCons import TestSCons, _exe -test = TestSCons.TestSCons() +test = TestSCons() -# test.subdir('work', ['work', 'src'], 'rep1', @@ -48,11 +41,9 @@ test.subdir('work', ['rep2', 'src'], ['rep2', 'src', 'sub']) -# workpath_rep1 = test.workpath('rep1') workpath_rep2 = test.workpath('rep2') -# test.write(['work', 'SConstruct'], """ Repository(r'%s') SConscript('src/SConscript') |