Hi, Kamil,
Thanks for your reply. Actually the current rats_install should also be updated. in the
following code
it cannot get the parameter --arch
cmd = "./install.py -s %s -l %s" % (self.tmpdir, self.resultsdir)
if image_url != "":
cmd += " -i %s" % image_url
if boot_args != "":
cmd += " -x %s" % boot_args
cmd += " %s" % baseurl
self.result = None
try:
out = utils.system_output(cmd + " 2>&1",
retain_output=True)
I will add the following
cmd += " --arch=%s" % kwargs['arch']
since the install.py also have the option --arch, the default is x86_64.
One thing I am still not very clear, do we have both x86_64 and i386 servers to run
x86_64 and i386 Fedora respectively? I think we will use x86_64 to run both x86_64 and
i386 Fedora during the development. So it would be better to split the server
and the Fedora tested architectures, the server architecture can be detected by default,
the architecture of Fedora tested will be passed as a parameter. What do you think?
Thanks,
Hongqing
----- Original Message -----
From: "Kamil Paral" <kparal(a)redhat.com>
To: "AutoQA development" <autoqa-devel(a)lists.fedorahosted.org>
Sent: Monday, May 30, 2011 3:28:19 PM
Subject: Re: autoqa cannot work with i386 architecture
Dear All,
Now I am developing the URL and DVD automatic installation test, I try
to integrate them into AutoQA.
but the architecture cannot be parsed correctly.
in the master branch, we can try it as below:
autoqa post-tree-compose
http://download.englab.nay.redhat.com/pub/fedora/linux/releases/14/Fedora...
--arch=i386 --test=rats_install --local
it always parsed the architecture as x86_64
I find the following codes are in the parse_params function of autoqa:
# Run the tests locally, or schedule them through autotest?
run_local = (opts.local or getbool(conf['local']))
if not opts.arch or run_local:
opts.arch = ['noarch']
can you help me make clear why we set arch as 'noarch' when we run it
locally, thanks.
Hongqing
Hello Hongqing,
nice to see you around. You have found one of our weak spots. The logic is mixed up a
little when handling architectures, because we use --arch to express two things at once:
1. the machine architecture this test should run on
2. the architecture this test should check
It is usually the same, but not always (we may want to run 32bit code on 64bit machine, we
may want to test 32bit network repo on whatever-arch machine, etc), we just hadn't hit
the issue before.
I think we should:
* split the single --arch option into 'test arch' and 'machine arch'
options
* don't override the machine arch when running locally, but check that it matches
* ensure the test arch option is used inside the tests
Concerning your current use case (rats_install), I have looked into rats_install.py and
the architecture doesn't seem to be used for test execution:
cmd = "./install.py -s %s -l %s" % (self.tmpdir,
self.resultsdir)
if image_url != "":
cmd += " -i %s" % image_url
if boot_args != "":
cmd += " -x %s" % boot_args
cmd += " %s" % baseurl
self.result = None
try:
out = utils.system_output(cmd + " 2>&1", retain_output=True)
Why do you need AutoQA to set it correctly?
it always parsed the architecture as x86_64
Can you provide sample output? Are you talking about output from rats_install/install.py
or some other?
_______________________________________________
autoqa-devel mailing list
autoqa-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/autoqa-devel