naming test script 'run.sh' overwrites the script that runs the test
Bug #1213926 reported by
Milosz Wasilewski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Confirmed
|
Medium
|
Antonio Terceiro |
Bug Description
If the script named 'run.sh' is downloaded before the test starts it overwrites the default test execution script. This is however a corner case and it should be enough to document the 'forbidden names' to warn users. Example yaml file that causes the problem:
metadata:
name: passfail
format: "Lava-Test-Shell Test Definition 1.0"
description: "Pass/Fail test."
install:
steps:
- wget http://
- chmod +x test_run.sh
run:
steps:
- ./test_run.sh
parse:
pattern: "(?P<test_
To post a comment you must log in.
On Mon, Aug 19, 2013 at 01:37:21PM -0000, Milosz Wasilewski wrote: 10.0.0. 1/foo/test/ run.sh -O test_run.sh
> If the script named 'run.sh' is downloaded before the test starts it
> overwrites the default test execution script. This is however a corner
> case and it should be enough to document the 'forbidden names' to warn
> users. Example yaml file that causes the problem:
[...]
> install:
> steps:
> - wget http://
> - chmod +x test_run.sh
I'm confused: you are not writing run.sh. To me it seems that this yaml
file *works around* the reported problem, instead of exposing it ... am
I missing something?