Hi, 
Currently I work on update for client/tests/xfstests
It consists of number of regression tests (around 350)
At this moment sub-tests names are hard-coded in control file,
but with recent version of xfstests tarball actual sub-test names
are known only on runtine.

What I want:
1) build list of sub-tests on runtime
2) run each sub-test as single test
Please explain: What is the best way to accomplish this task?

At this moment I've done this like follows:
xfstest.py:
    def run_once(self, test_list = [], test_exclude_list = [],
                 group_list = [], group_exclude_list = [],
                 build_list_only = True):
        .....<SKIP>
        # This is prep stage, just populate job list
        if build_list_only:
            tlist = self._get_available_tests(params)
            logging.debug("List of tests: %s" % tlist)
            for t in tlist:
                # test may contain '/', let's replace it more convinient way
                tname =  string.replace(t, '/','.')
                self.job.run_test('xfstests', test_list = [t],
                                  build_list_only = False,
                                  tag=self.tagged_testname + "." + tname)
        else:
            logging.debug("Running test: %s" % params)
            self._run_sub_test(params)

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to