feature request: better validation of lava-test-case name in YAML files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
I was auto generating a YAML file based on the Java package names and each entry looks like:
- 'lava-test-case java/lang/Integer --shell ./jtreg-lava java/lang/Integer'
- 'lava-test-case java/lang/String --shell ./jtreg-lava java/lang/String'
What I hadn't realized was that the error I was getting back:
<LAVA_TEST_RUNNER>: exiting
linaro-test [rc=0]# echo LAVA_ACK<
<LAVA_DISPATCHE
Lava failed at action lava_test_shell with error:Validatio
Traceback (most recent call last):
[stacktrace omitted as not useful]
is actually related to the lava-test-case name. Which is now obvious in hindsight as I'm guessing the test case name becomes a filename.
If I change this to:
- 'lava-test-case java.lang.Integer --shell ./jtreg-lava java/lang/Integer'
- 'lava-test-case java.lang.String --shell ./jtreg-lava java/lang/String'
then this runs to completion.
It would be helpful if either the name could be validated and an error thrown (and the test not run) or perhaps the test name could be normalized under the hood to remove path separators. I was confused for a long time because I had some other tests preceding those entries (as listed above) and I thought it was actually something wrong with the parser... Ho hum!
Changed in lava-dispatcher: | |
importance: | Undecided → Wishlist |
Changed in lava-dispatcher: | |
status: | New → Confirmed |