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

fix platform exclusion for non x86_64

parent daf0bda2
No related branches found
No related tags found
1 merge request!1396Fixes to support builds on ARM processors
......@@ -9,10 +9,19 @@
# or submit itself to any jurisdiction. #
#####################################################################################
import os
from platform import processor
from subprocess import PIPE, Popen
from nose import SkipTest
def test():
if processor() != "x86_64":
raise SkipTest(
"platform {} not supported (instructionsetLevel only works on x86_64".format(
processor()
)
)
out = Popen(["instructionsetLevel", "all"], stdout=PIPE).communicate()[0]
out = out.decode("utf-8")
known_flags = set(l.strip() for l in out.splitlines())
......
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