On Mon, 2011-02-21 at 12:54 +0530, madhuri wrote:
> Hi All,
> 
> I have requirement to analyse the performance results from the ffsb
> tests. 
> 
> Whenever it is run from autotest. it just prints compile messages and
> pass/fail status. the same is redirected to debug log in results.
> 
> Is there any way to get the exact stdout of the cmdline triggered of a
> particular testsuite and redirect that output to a autotest.output file
> in results directory.

Most benchmark wrappers implemented in autotest upstream these days do
write a raw output file inside the results dir. Just look at the
run_once implementation of tests such as hackbench or iozone. It boils
down to:

        # Execute the test, and save the stdout to self.results
        self.results = utils.system_output(cmd, retain_output=True)
        # Write a raw_output_[iteration] to the results dir (subdir results)
        output_path = os.path.join(self.resultsdir, 'raw_output_%s' % 
self.iteration)
        # Write the stdout to the file inside results
        utils.open_write_close(output_path, self.results)

I've assigned the output to self.results in case you are going to do any
further postprocessing with it. Again, looking at how we do things on
the upstream benchmark wrappers will help you a lot.

Lucas


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to