On 09/18/2012 08:29 AM, Mike wrote:
Hi all
These days I setup a autotest server for test.
And I face a problem, maybe a bug.
for example , I create a new job like sleeptest.
it runs OK, so does other tests except KVM.
When I create a job of KVM test.
in Client side it will raise a error like :
/usr/local/autotest/tests/kvm/build.cfg No such
file or dir.
it is because in control file of KVM, there is a line:
kvm_test_dir = os.path.join(os.environ['AUTODIR'],'tests/kvm')
this will cause two problems :
1. the dir in client has changed , mostly in
os.environ['AUTODIR'],'tmp/site_tests/kvm'
2. the file build.cfg/tests.cfg, has not been fetched from the server.
    but client has parsed the control file and can't find these files.
So it will cause failure when run the test case.

I will attach the log file, and need any one to fix it :)

This is expected behavior. The KVM test user is supposed to copy the sample config files to actual config files:

https://github.com/autotest/autotest/wiki/VirtTestDocumentation#wiki-id2

Once you run the get_started.py script, the config files will be there, therefore the kvm test will run. So I consider this NOTABUG, since to this point, we still couldn't automate *setup* of the KVM test (meaning the tester has to read docs and set up test environment).

Cheers,

Lucas


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

Reply via email to