Comment 2 for bug 1213926

Revision history for this message
Milosz Wasilewski (mwasilew) wrote : Re: [Bug 1213926] [NEW] naming test script 'run.sh' overwrites the script that runs the test

On 19 August 2013 20:37, Antonio Terceiro <email address hidden> wrote:
> On Mon, Aug 19, 2013 at 01:37:21PM -0000, Milosz Wasilewski wrote:
>> 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://10.0.0.1/foo/test/run.sh -O test_run.sh
>> - 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?
>

copy/paste mistake in the bug. I pasted the yaml that works around the
problem :)
Yaml that caused the problem was like this:

install:
     steps:
         - wget http://10.0.0.1/foo/test/run.sh
         - chmod +x test_run.sh