# release, but 4.0.3 would only match 4.0.3.
version: 4.0
+ # Test is only for the listed OS. For example, the following would make
+ # a test run only on Linux.
+ os: linux
+
# Require the presence of specific features.
features:
# Restrict the test to builds with HAVE_LUA.
import subprocess
import yaml
import traceback
+import platform
VALIDATE_EVE = False
WIN32 = sys.platform == "win32"
elif key == "lambda":
if not eval(requires["lambda"]):
raise UnsatisfiedRequirementError(requires["lambda"])
+ elif key == "os":
+ cur_platform = platform.system().lower()
+ if not cur_platform.startswith(requires["os"].lower()):
+ raise UnsatisfiedRequirementError(requires["os"])
else:
raise Exception("unknown requires types: %s" % (key))