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/option | |
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/option')
-rw-r--r-- | test/option/option--Y.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/test/option/option--Y.py b/test/option/option--Y.py index 69951c0..9293f67 100644 --- a/test/option/option--Y.py +++ b/test/option/option--Y.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,21 +22,12 @@ # 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__" import sys -import TestSCons - -if sys.platform == 'win32': - _exe = '.exe' -else: - _exe = '' - +from TestSCons import TestSCons, _exe -test = TestSCons.TestSCons() +test = TestSCons() test.subdir('repository', 'work1') |