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

Reply via email to