summaryrefslogtreecommitdiff
path: root/test/import.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-04-13 03:46:05 +0000
committerSteven Knight <knight@baldmt.com>2004-04-13 03:46:05 +0000
commite4adb76f832acf1d22f99801a54abb9ea1562182 (patch)
tree78e53644e9c5ebc5de83171602f2f31b894179b7 /test/import.py
parent622d5777ae1e7db95933e3218a0619a764f20bd6 (diff)
downloadscons-e4adb76f832acf1d22f99801a54abb9ea1562182.tar.gz
More robust searching for the ICL license file. (Gary Oberbrunner)
Diffstat (limited to 'test/import.py')
-rw-r--r--test/import.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/import.py b/test/import.py
index 6d154ae8..48ae5466 100644
--- a/test/import.py
+++ b/test/import.py
@@ -115,6 +115,13 @@ tools = [
'zip',
]
+error_output = {
+ 'icl' : """
+scons: warning: Intel license dir was not found. Tried using the INTEL_LICENSE_FILE environment variable (), the registry () and the default path (C:\Program Files\Common Files\Intel\Licenses). Using the default path as a last resort.
+File "SConstruct", line 1, in ?
+"""
+}
+
# An SConstruct for importing Tool names that have illegal characters
# for Python variable names.
indirect_import = """\
@@ -136,6 +143,11 @@ for tool in tools:
test.write('SConstruct', indirect_import % (tool, tool, tool))
else:
test.write('SConstruct', direct_import % (tool, tool, tool))
- test.run()
+ test.run(stderr=None)
+ stderr = test.stderr()
+ if stderr != '' and stderr != error_output.get(tool, ''):
+ print "Failed importing '%s', stderr:" % tool
+ print stderr
+ test.fail_test(1)
test.pass_test()