avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
345 stars 343 forks source link

Better description of config syntax error #5985

Closed richtja closed 3 months ago

richtja commented 4 months ago

When there is an issue with syntax in avocado config file avocado won't provide enough information for the user to understand the problem. This commit will improve the error message by specifying the wrong value and the reason for syntax error.

before this commit:

SyntaxError: Syntax error in config file ./pom_config, please check the
value /build/avocado/data/cache

after this commit:

ValueError: /build/avocado/data/cache could not be converted into a list
During handling of the above exception, another exception occurred:

SyntaxError: Syntax error in config file ./pom_config, please check the
value /build/avocado/data/cache

Reference: #5906

richtja commented 3 months ago

Hi @harvey0100 and @clebergnu, gentle ping here.