about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-03-24 17:14:45 -0700
committerRicho Healey <richo@psych0tik.net>2015-03-27 16:50:37 -0700
commite4f9ce8cbf9d5a110afb7274c393abb333e01a2b (patch)
treed75220e7d046658b8fa3599e05d2f907e7a36551
parent93fc804b85b856aa84455cdcee5f4ae51b51a25a (diff)
downloadrust-e4f9ce8cbf9d5a110afb7274c393abb333e01a2b.tar.gz
rust-e4f9ce8cbf9d5a110afb7274c393abb333e01a2b.zip
check: Fix the check for platform formatting
-rw-r--r--src/etc/check-sanitycheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/check-sanitycheck.py b/src/etc/check-sanitycheck.py
index c5df15aa177..cb34fa20531 100644
--- a/src/etc/check-sanitycheck.py
+++ b/src/etc/check-sanitycheck.py
@@ -29,7 +29,7 @@ def only_on(platforms):
     def decorator(func):
         @functools.wraps(func)
         def inner():
-            if sys.platform in platforms:
+            if any(map(lambda x: sys.platform.startswith(x), platforms)):
                 func()
         return inner
     return decorator