Skip to content
Snippets Groups Projects
Commit 846c5df8 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Fix detection of platform specific reference files

Closes #236

See merge request !1398
parents 66f98a0b 6b783640
No related branches found
No related tags found
No related merge requests found
......@@ -681,11 +681,9 @@ class BaseTest(object):
return ""
# function to split an extension in constituents parts
def platformSplit(p):
import re
import re
delim = re.compile("-" in p and r"[-+]" or r"_")
return set(delim.split(p))
platformSplit = lambda p: set(re.split(r"[-+]", p))
reference = os.path.normpath(
os.path.join(self.basedir, os.path.expandvars(reffile))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment