summaryrefslogtreecommitdiff
path: root/test/exceptions.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2008-10-29 03:01:00 +0000
committerGary Oberbrunner <garyo@oberbrunner.com>2008-10-29 03:01:00 +0000
commit2556cb598478ec1961543d72941545ead5a9a339 (patch)
tree93f780a267396d95f9bfeba9c48da963a81abf05 /test/exceptions.py
parentefd8c15b182b80f7151f1a180c95bcfabfe792b4 (diff)
downloadscons-2556cb598478ec1961543d72941545ead5a9a339.tar.gz
Applied Benoit Belley's patch in ticket 1957 improve the robustness of
GetBuildFailures(). New function convert_to_buildError, and use it in several places so all build failures now go through it and are returned as BuildError exceptions. Had a small effect on output formatting in many tests but no significant change to behavior. I reworked the patch a little to keep SCons exit status values the same as before; this patch could make it simpler to change them in some cases, e.g. exit with the errno of the failed action if desired. One nice side effect of this patch is that more scons errors print the node that caused the error now.
Diffstat (limited to 'test/exceptions.py')
-rw-r--r--test/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/exceptions.py b/test/exceptions.py
index b0939c0c..98e3e834 100644
--- a/test/exceptions.py
+++ b/test/exceptions.py
@@ -47,7 +47,7 @@ env.B(target = 'foo.out', source = 'foo.in')
test.write('foo.in', "foo.in\n")
-expected_stderr = """scons: \*\*\* \[foo.out\] Exception
+expected_stderr = """scons: \*\*\* \[foo.out\] Exception : func exception
Traceback \((most recent call|innermost) last\):
( File ".+", line \d+, in \S+
[^\n]+
@@ -109,7 +109,7 @@ test.run(arguments = '.', status = 2, stderr = expected_stderr)
expected_stderr_list = [
"scons: *** [out.f1] Error 1\n",
- "scons: *** Source `in.f2' not found, needed by target `out.f2'.\n",
+ "scons: *** [out.f2] Source `in.f2' not found, needed by target `out.f2'.\n",
"scons: *** [out.f3] Error 1\n",
]