diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-11-21 08:54:35 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-11-21 08:54:35 +0000 |
commit | a77ccfec24e0d34cd117b6919269aaff0070458e (patch) | |
tree | 1a62a75acd899a46383d5c86ec35dd38a2c2dd2a | |
parent | 5484151754d8bc20e250eee22dff1132dfaa85d3 (diff) | |
download | bcm5719-llvm-a77ccfec24e0d34cd117b6919269aaff0070458e.tar.gz bcm5719-llvm-a77ccfec24e0d34cd117b6919269aaff0070458e.zip |
Handle extra whitespace in linux distribution name.
llvm-svn: 222514
-rw-r--r-- | libcxx/test/lit.cfg | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index bfb678f0650..cf92e877dd3 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -362,10 +362,11 @@ class Configuration(object): # Insert the distributions name and name-version into the available # features to allow tests to XFAIL on them. if sys.platform.startswith('linux'): - os_info = platform.linux_distribution() - self.config.available_features.add(os_info[0].lower()) - self.config.available_features.add( - '%s-%s' % (os_info[0].lower(), os_info[1])) + name, ver, _ = platform.linux_distribution() + name = name.lower().strip() + ver = ver.lower().strip() + self.config.available_features.add(name) + self.config.available_features.add('%s-%s' % (name, ver)) def configure_compile_flags(self): # Configure extra compiler flags. |