diff options
| author | William Deegan <bill@baddogconsulting.com> | 2021-03-19 18:39:59 (GMT) |
|---|---|---|
| committer | William Deegan <bill@baddogconsulting.com> | 2021-03-19 18:39:59 (GMT) |
| commit | 364cb87cb322dc1ba08d7cbfdcf36d70c72d27bf (patch) | |
| tree | 61ca040d0e40e22b051331b2cb12448646a76eb7 /test/File/File-relpath.py | |
| parent | 0573abe24319cae16b5f607fd801903b384363be (diff) | |
| download | SCons-364cb87cb322dc1ba08d7cbfdcf36d70c72d27bf.zip SCons-364cb87cb322dc1ba08d7cbfdcf36d70c72d27bf.tar.gz SCons-364cb87cb322dc1ba08d7cbfdcf36d70c72d27bf.tar.bz2 | |
Fix test to no longer need factory or scanner specified. Flesh out the fixture with actual dirs and files. Also add SOURCE.relpath, so singular case is also tested
Diffstat (limited to 'test/File/File-relpath.py')
| -rw-r--r-- | test/File/File-relpath.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/File/File-relpath.py b/test/File/File-relpath.py index e3569dc..48c862b 100644 --- a/test/File/File-relpath.py +++ b/test/File/File-relpath.py @@ -36,11 +36,13 @@ test = TestSCons.TestSCons() test.subdir('src', ['src', 'dir']) -test.file_fixture('fixture/SConstruct-relpath', 'SConstruct') - -test.run('-Q', status=0, stdout="""\ +test.dir_fixture('fixture/relpath') +test.run('-Q', chdir='base', status=0, stdout="""\ ../foo/dir build/file1 %s %s -src +src/file +%s +src/file %s -""" % (os.path.abspath('../foo/dir'), os.path.abspath('build/file1'), os.path.abspath('src'))) +""" % (os.path.abspath('base/../foo/dir'), os.path.abspath('base/build/file1'), os.path.abspath('base/src/file'), + os.path.abspath('base/src/file'))) |
