mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
Remove incompatible OS X switches in Test.py
This commit is contained in:
@@ -58,10 +58,10 @@ def powerset(iterable):
|
|||||||
s = list(iterable)
|
s = list(iterable)
|
||||||
return itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(len(s) + 1))
|
return itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(len(s) + 1))
|
||||||
|
|
||||||
|
|
||||||
IS_WINDOWS = platform.system().lower() == 'windows'
|
IS_WINDOWS = platform.system().lower() == 'windows'
|
||||||
|
IS_OS_X = platform.system().lower() == 'darwin'
|
||||||
|
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS or IS_OS_X:
|
||||||
ALL_TARGETS = [('debug',), ('release',)]
|
ALL_TARGETS = [('debug',), ('release',)]
|
||||||
else:
|
else:
|
||||||
ALL_TARGETS = [(cc + "." + target,)
|
ALL_TARGETS = [(cc + "." + target,)
|
||||||
@@ -70,7 +70,7 @@ else:
|
|||||||
'debug.nounity', 'release.nounity', 'coverage.nounity', 'profile.nounity']]
|
'debug.nounity', 'release.nounity', 'coverage.nounity', 'profile.nounity']]
|
||||||
|
|
||||||
# list of tuples of all possible options
|
# list of tuples of all possible options
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS or IS_OS_X:
|
||||||
ALL_OPTIONS = [tuple(x) for x in powerset(['--assert'])]
|
ALL_OPTIONS = [tuple(x) for x in powerset(['--assert'])]
|
||||||
else:
|
else:
|
||||||
ALL_OPTIONS = list(set(
|
ALL_OPTIONS = list(set(
|
||||||
|
|||||||
Reference in New Issue
Block a user