# a test run only on Linux.
os: linux
+ # Test is only for the liste architecture. For example, following would
+ # make a test run only on x86_64. Other values can be amd64, i386, etc.
+ arch: x86_64
+
# Require the presence of specific features.
features:
# Restrict the test to builds with HAVE_LUA.
cur_platform = platform.system().lower()
if not cur_platform.startswith(requires["os"].lower()):
raise UnsatisfiedRequirementError(requires["os"])
+ elif key == "arch":
+ cur_arch = platform.machine().lower()
+ if not cur_arch.startswith(requires["arch"].lower()):
+ raise UnsatisfiedRequirementError(requires["arch"])
else:
raise Exception("unknown requires types: %s" % (key))