On Thu, 2011-04-14 at 14:25 -0700, Gaston, Jason D wrote:
> Hello,
>
> I am able to run "bin/autotest tests/kvm/control" fine, but now I would like
> to run "bin/autotest myjobfile". For other tests, I have just been including
> "job.run_test('testname')" within my myjobfile. When I tried to use
> "job.run_test('kvm')", it says that I am missing parameters. What parameters
> would I need to include to run the same basic test as executed by
> "bin/autotest tests/kvm/control"?
I just realized that you asked a different question. To get the
parameters that comprise a coherent KVM autotest job (regular
dictionary), you need to ask the config system to generate it:
[lmr@freedom kvm]$ ./kvm_config.py tests.cfg
dict 1: smp2.Fedora.14.64.unattended_install.cdrom
dict 2: smp2.Fedora.14.64.boot
dict 3: smp2.Fedora.14.64.shutdown
If you want to see how they look like, you can call this program with
the -c flag:
[lmr@freedom kvm]$ ./kvm_config.py -c tests.cfg
... lots of output ...
The output will list all key = value assignments for each one of the
dictionary. The KVM autotest will run just fine if you call
job.run_test() with those parameters:
job.run_test(url='kvm', params={...})
However it is important to note that we also have a test dependency
system (see more details in kvm_utils.py/run_tests(), say, guest tests
need successful guest installs otherwise no point in running them), so
calling the control file created for the KVM test makes things easier.
> Thank you!
>
> Jason
>
>
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest