Refactor all the sysinfo collection code into something a bit less
ad-hoc than the original code. In particular:
  - move all the code into base_sysinfo and site_sysinfo classes, and
    use inheritance to hook the site-specific code rather that having
    to add explicit hooks to the base code
  - get rid of all the magic state created in client/bin/test.py so
    that we can pass data between the sysinfo code run before and
    after each test; instead, just have a single sysinfo instance
    associated with a job and store state there
  - change all the code to work with paths taken from job and test
    objects (i.e. job.resultdir and test.outputdir) instead of just
    magically changing the working directory and implicitly doing all
    logging in place
  - change the reboot in the job sysinfo dir to call them boot.0,
    boot.1, etc. to be more in line with the names we use in TKO
  - replace some code that used shell commands with functions from
    the python standard library (e.g. os.symlink instead of "ln -s")

Risk: Medium
Visibility: reboot.N -> boot.(N-1) in sysinfo; all other changes
should not be user visible

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2257 592f7852-d20e-0410-864c-8624ca9c26a4
6 files changed