test.fail_test(test.read('aaa.out') != "aaa.in\n")
# This next test used to provide a slightly different error message:
-# "scons: *** Do not know how to make target `%snot_mentioned'. Stop.\n"
+# "scons: *** Do not know how to make File target `%snot_mentioned'. Stop.\n"
# Right now, it doesn't seem important enough to track down exactly
# why this changed and fix it, but we'll preserve it here in case it
# becomes an issue or some refactoring restores the old behavior.
test.run(arguments = bad_drive + 'not_mentioned',
- stderr = "scons: *** Do not know how to make target `%snot_mentioned'. Stop.\n" % (bad_drive),
+ stderr = "scons: *** Do not know how to make File target `%snot_mentioned'. Stop.\n" % (bad_drive),
status = 2)
expect = "scons: *** [%sno_target_1] No drive `%s' for target `%sno_target_1'.\n" % (bad_drive, bad_drive, bad_drive)
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os.path
+import re
+
import TestSCons
test = TestSCons.TestSCons()
match=TestSCons.match_re_dotall)
test.run(arguments = '-k foo/bar foo',
- stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % foo_bar,
+ stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % re.escape(foo_bar),
status = 2,
match=TestSCons.match_re_dotall)