Skip to content

Error messages should be more helpful #46

@kweide

Description

@kweide

While modifying a testing configuration for debugging, I findflashxtest run-suite failing with error messages like this:

Traceback (most recent call last):
  File "/scratch/jenkins-slave/workspace/Flash-X-debug_GCC/pyenv/lib/python3.8/site-packages/FlashXTest/lib/info.py", line 132, in jobListFromNode
    if infoNode.subNodes:
AttributeError: 'NoneType' object has no attribute 'subNodes'

This appears to happen when a .suite file requests a test that isn't actually defined in the .info file.

This traceback is not helpful in locating the cause of the failure.
At a minimum, the nodeName of the offending requested test should be printed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions