Ensure a name is set in the json output of rz-test
This commit is contained in:
parent
d7f793bb6f
commit
aee62e62ab
1 changed files with 1 additions and 1 deletions
|
|
@ -623,7 +623,7 @@ static void test_result_to_json(PJ *pj, RzTestResultInfo *result) {
|
|||
switch (test->type) {
|
||||
case RZ_TEST_TYPE_CMD:
|
||||
pj_s(pj, "cmd");
|
||||
pj_ks(pj, "name", test->cmd_test->name.value);
|
||||
pj_ks(pj, "name", test->cmd_test->name.value ? test->cmd_test->name.value : "missing name");
|
||||
break;
|
||||
case RZ_TEST_TYPE_ASM:
|
||||
pj_s(pj, "asm");
|
||||
|
|
|
|||
Loading…
Reference in a new issue