diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-05-15 16:40:56 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-05-15 16:40:56 -0700 |
commit | 077f2cd6bf2e57184a1b5c3e3ec98b1b3d6b5fdc (patch) | |
tree | b4d59c6def125b731ebde9fa20a7ee3cdb789828 /test/option--duplicate.py | |
parent | b67d8c0db855d4ee195195536572f734798878c2 (diff) | |
download | scons-077f2cd6bf2e57184a1b5c3e3ec98b1b3d6b5fdc.tar.gz |
py2/3 Don't check for hard/soft links on win32 as we don't enable them because they require permissions which are not always enabled
Diffstat (limited to 'test/option--duplicate.py')
-rw-r--r-- | test/option--duplicate.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/option--duplicate.py b/test/option--duplicate.py index cccc1857..2d21d743 100644 --- a/test/option--duplicate.py +++ b/test/option--duplicate.py @@ -30,6 +30,7 @@ SConscript settable option. __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os +import sys import stat import TestSCons @@ -49,8 +50,10 @@ SConscript('build/SConscript') test.write('SConscript', '') -hard = hasattr(os,'link') -soft = hasattr(os,'symlink') +# we don't use links on windows currently as they +# require permissions not usually set +hard = hasattr(os, 'link') and sys.platform != 'win32' +soft = hasattr(os, 'symlink') and sys.platform != 'win32' copy = 1 # should always work bss = test.workpath('build/SConscript') |