diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2014-08-31 09:15:00 -0400 |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2014-08-31 09:15:00 -0400 |
commit | fc9bb1ace3050473d966bebbe4ca4e4c5520b72b (patch) | |
tree | 04dfdfd65b5f31a9eb514933070defd1b86d4898 /test/Copy-Symlinks.py | |
parent | c9cdaeb829d25a2faa7c911308da72cea4641924 (diff) | |
parent | 48f578bce63dca3594c2c5c2c3468daa5400fdd1 (diff) | |
download | scons-fc9bb1ace3050473d966bebbe4ca4e4c5520b72b.tar.gz |
Merged in williamblevins/scons4 (pull request #180, issue 2935)
Diffstat (limited to 'test/Copy-Symlinks.py')
-rw-r--r-- | test/Copy-Symlinks.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/Copy-Symlinks.py b/test/Copy-Symlinks.py index f8f92d74..640e76c1 100644 --- a/test/Copy-Symlinks.py +++ b/test/Copy-Symlinks.py @@ -38,6 +38,9 @@ SCons.Defaults.DefaultEnvironment( tools = [] ) test = TestSCons.TestSCons() +if not hasattr(os, 'symlink'): + test.skip_test('No os.symlink() method, no symlinks to test.\n') + filelinkToCopy = 'filelinkToCopy' fileToLink = 'file.in' fileContents = 'stuff n things\n' @@ -48,13 +51,10 @@ treelinkToCopy = 'treelinkToCopy' badToLink = 'None' # do not write this item badlinkToCopy = 'badlinkToCopy' -try: - test.symlink( fileToLink, filelinkToCopy ) - test.symlink( dirToLink, dirlinkToCopy ) - test.symlink( treeToLink, treelinkToCopy ) - test.symlink( badToLink, badlinkToCopy ) -except: - test.no_result() +test.symlink( fileToLink, filelinkToCopy ) +test.symlink( dirToLink, dirlinkToCopy ) +test.symlink( treeToLink, treelinkToCopy ) +test.symlink( badToLink, badlinkToCopy ) test.write( fileToLink, fileContents ) test.subdir( dirToLink ) |