summaryrefslogtreecommitdiffstats
path: root/test/RCS/diskcheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/RCS/diskcheck.py')
-rw-r--r--test/RCS/diskcheck.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/RCS/diskcheck.py b/test/RCS/diskcheck.py
index 78120f6..07cb170 100644
--- a/test/RCS/diskcheck.py
+++ b/test/RCS/diskcheck.py
@@ -115,13 +115,15 @@ test.write('bbb.in', "checked-out bbb.in\n")
test.write(['sub', 'eee.in'], "checked-out sub/eee.in\n")
+sub_SConscript = os.path.join('sub', 'SConscript')
+SConstruct_file_line = test.python_file_line(test.workpath('SConstruct'), 23)[:-1]
expect = """\
-scons: warning: Ignoring missing SConscript '%s'
-File "%s", line 23, in ?
+scons: warning: Ignoring missing SConscript '%(sub_SConscript)s'
+%(SConstruct_file_line)s
scons: *** Source `aaa.in' not found, needed by target `aaa.out'. Stop.
-""" % (os.path.join('sub', 'SConscript'), test.workpath('SConstruct'))
+""" % locals()
test.run(status=2, stderr=expect)