reclaimed the = sign. Architectures now specified by +arch= instead. Decided to prepend flag names with + for clarity in spec names and ease of parsing. Also generalized variants, although there is not yet a way to specify a generalized (name=value) variant.

This commit is contained in:
Gregory Becker
2015-09-25 09:25:12 -07:00
parent 7989a7f903
commit db1b21b9aa
8 changed files with 104 additions and 60 deletions

View File

@@ -103,19 +103,19 @@ def has_a_default(self):
#
# Make sure we can switch methods on different architectures
#
@when('=x86_64')
@when('+arch=x86_64')
def different_by_architecture(self):
return 'x86_64'
@when('=ppc64')
@when('+arch=ppc64')
def different_by_architecture(self):
return 'ppc64'
@when('=ppc32')
@when('+arch=ppc32')
def different_by_architecture(self):
return 'ppc32'
@when('=arm64')
@when('+arch=arm64')
def different_by_architecture(self):
return 'arm64'