configurejson2cmake: Fix compile tests without a "test" entry
Set the default value of the "test" entry to the test's name like the qmake-based configure does. Change-Id: Ic1027c54c6312c47dca241dd7e3dc65b3e35d36f Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
b99321b78b
commit
343865201a
@ -527,7 +527,10 @@ def parseTest(ctx, test, data, cm_fh):
|
||||
if data["type"] == "compile":
|
||||
knownTests.add(test)
|
||||
|
||||
details = data["test"]
|
||||
if "test" in data:
|
||||
details = data["test"]
|
||||
else:
|
||||
details = test
|
||||
|
||||
if isinstance(details, str):
|
||||
if not ctx["test_dir"]:
|
||||
|
Loading…
Reference in New Issue
Block a user