Skip to content
Snippets Groups Projects
Commit 928a0dc9 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Make sure test_wrapper -v outputs usable device/platform ids.

parent 12ade92e
Branches
Tags
No related merge requests found
......@@ -191,12 +191,15 @@ def pytest_generate_tests(metafunc):
if "context" in metafunc.funcargnames:
arg_dict["context"] = cl.Context([device])
metafunc.addcall(funcargs=arg_dict.copy())
metafunc.addcall(funcargs=arg_dict.copy(),
id=", ".join("%s=%s" % (arg, value)
for arg, value in arg_dict.iteritems()))
elif "platform" in metafunc.funcargnames:
for platform in cl.get_platforms():
metafunc.addcall(
funcargs=dict(platform=platform))
funcargs=dict(platform=platform),
id=str(platform))
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment