summaryrefslogtreecommitdiffstats
path: root/test/QT/empty-env.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-11-07 20:39:50 (GMT)
committerMats Wichmann <mats@linux.com>2021-11-11 22:19:53 (GMT)
commit5093d3f59a2d33db040eb04ed4057cbd6bbd71b6 (patch)
tree8121fc5ac3afc318e8f092e36e4473c44d2bfb91 /test/QT/empty-env.py
parent6051c8beb7bc59f083552e9f431733e93fd56360 (diff)
downloadSCons-5093d3f59a2d33db040eb04ed4057cbd6bbd71b6.zip
SCons-5093d3f59a2d33db040eb04ed4057cbd6bbd71b6.tar.gz
SCons-5093d3f59a2d33db040eb04ed4057cbd6bbd71b6.tar.bz2
Deprecate the qt tool.
Updates tests to disable the warning that this change enables. Fix runtest.py to make sure -o logging option captures all the output. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/QT/empty-env.py')
-rw-r--r--test/QT/empty-env.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/QT/empty-env.py b/test/QT/empty-env.py
index b7867e5..e9dfc81 100644
--- a/test/QT/empty-env.py
+++ b/test/QT/empty-env.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,9 +22,6 @@
# 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 Qt creation from a copied empty environment.
@@ -62,11 +61,14 @@ foo6(void)
# we can receive warnings about a non detected qt (empty QTDIR)
# these are not critical, but may be annoying.
-test.run(stderr=None)
+test.run(stderr=None, arguments='--warn=no-tool-qt-deprecated')
-test.run(program = test.workpath('main' + TestSCons._exe),
- stderr = None,
- stdout = 'qt/include/foo6.h\n')
+test.run(
+ program=test.workpath('main' + TestSCons._exe),
+ arguments='--warn=no-tool-qt-deprecated',
+ stderr=None,
+ stdout='qt/include/foo6.h\n',
+)
test.pass_test()