That can be done by creating a different *tag* for each test.
For example,
tests = ['create', 'list', 'extract', 'copy']
for i in tests:
job.run_test('pax', test = i,* tag = i*, archive = ARCHIVE)
On Fri, May 17, 2013 at 4:56 AM, Dev Priya <[email protected]> wrote:
> Hi,
>
> I want to be able to run a test n-times from a control file. How do I go
> about doing this?
>
> I tried the following control file but it didn't work -
>
> def step_init():
> for x in range(0, 3):
> job.next_step('run_sleeptest)
>
> def run_sleeptest():
> AUTHOR = "Autotest"
> NAME = "Sleeptest"
> TIME = "SHORT"
> TEST_CATEGORY = "Functional"
> TEST_CLASS = "General"
> TEST_TYPE = "client"
>
> DOC = """
> This test simply sleeps for 1 second by default. It's a good way to test
> profilers and double check that autotest is working.
> The seconds argument can also be modified to make the machine sleep for as
> long as needed.
> """
>
> job.run_test('sleeptest', seconds = 1)
>
> I get an error message saying - Unhandled TestError: sleeptest already
> exists; multiple tests cannot run with the same subdirectory
>
> How can we get this to work?
>
> Thanks,
> Dev
>
> _______________________________________________
> Autotest-kernel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/autotest-kernel
>
--
*Regards,
Rajeev S*
*B Tech CSE Student*
*Government Engineering College,Thrissur*
*http://rajeevs.tk*
*http://careers.stackoverflow.com/rajeevs*
*https://github.com/rajeevs1992*
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel