diff options
author | Steven Knight <knight@baldmt.com> | 2008-12-02 18:58:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2008-12-02 18:58:29 (GMT) |
commit | 7f1d72c184e5824bf15a593add8542de4c049d8a (patch) | |
tree | c348729a8ec87ae7633ed7247233f75a567b5127 /test/Glob | |
parent | 5ff500d545f734f5fa10c72cdc0ca707c91c7700 (diff) | |
download | SCons-7f1d72c184e5824bf15a593add8542de4c049d8a.zip SCons-7f1d72c184e5824bf15a593add8542de4c049d8a.tar.gz SCons-7f1d72c184e5824bf15a593add8542de4c049d8a.tar.bz2 |
Fix a Glob() exception (with stack trace) when an explicit Node
exists in a repository directory without a corresponding on-disk
file or directory.
Diffstat (limited to 'test/Glob')
-rw-r--r-- | test/Glob/Repository.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Glob/Repository.py b/test/Glob/Repository.py index 6cef443..bef9bda 100644 --- a/test/Glob/Repository.py +++ b/test/Glob/Repository.py @@ -55,6 +55,12 @@ def cat(env, source, target): f.write(open(src, "rb").read()) f.close() +# Verify that we can glob a repository-only Node that exists +# only in memory, not on disk. +File('../repository/mmm.in') +m = Glob('m*.in') +assert str(m[0]) == 'mmm.in' + env = Environment(BUILDERS={'Build':Builder(action=cat)}) env.Build('aaa.out', Glob('a*.in')) env.Build('bbb.out', Glob('b*.in')) |