diff options
| author | Steven Knight <knight@baldmt.com> | 2001-10-10 21:50:55 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2001-10-10 21:50:55 (GMT) |
| commit | 385aabf686d687432fb81fa2e68b77e3f11f06f8 (patch) | |
| tree | 319adfb4dc23d8c7b1e55fb2e691898d8b544481 /etc/TestCmd.py | |
| parent | f72203b4610a100fce3065f5c5c4c41e92fc5883 (diff) | |
| download | SCons-385aabf686d687432fb81fa2e68b77e3f11f06f8.zip SCons-385aabf686d687432fb81fa2e68b77e3f11f06f8.tar.gz SCons-385aabf686d687432fb81fa2e68b77e3f11f06f8.tar.bz2 | |
Add -i (ignore errors) support
Diffstat (limited to 'etc/TestCmd.py')
| -rw-r--r-- | etc/TestCmd.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/TestCmd.py b/etc/TestCmd.py index 7ecb90b..d09d35d 100644 --- a/etc/TestCmd.py +++ b/etc/TestCmd.py @@ -486,6 +486,20 @@ class TestCmd: count = count + 1 return count + def unlink (self, file): + """Unlinks the specified file name. + The file name may be a list, in which case the elements are + concatenated with the os.path.join() method. The file is + assumed to be under the temporary working directory unless it + is an absolute path name. + """ + if type(file) is ListType: + file = apply(os.path.join, tuple(file)) + if not os.path.isabs(file): + file = os.path.join(self.workdir, file) + os.unlink(file) + + def verbose_set(self, verbose): """Set the verbose level. """ |
