在 2012-09-18二的 08:35 -0300,Lucas Meneghel Rodrigues写道: > 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). > Hi Lucas I think you don't catch what I exactly mean. Maybe because my poor English:)
I mean when the server setup the remote client, the client machine will not find the build.cfg before get it. Actually , I always run the get_started.py script when first setup the autotest. What I mean is the client machine need to parse the control file , but build.cfg/tests.cfg haven't been fetched to the client machine for remote(Server) at that time. So it will cause the error what I say:) > Cheers, > > Lucas > > _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
