Frank Becker <[email protected]> writes:

> On Fri, 2010-09-24 at 09:44 -0400, Jeff Moyer wrote:
>
> Hi,
>
>> the git_kernel.srv sample file to use the linux-next git repo and set my
>> machine configuration and custom config file.  The test fails,
>> unfortunately, and that status file reads:
>> 
>> INFO  ----                                                 ----
>> timestamp=1285335549    job_abort_reason='module' object has no
>> attribute 'GitRepo'     localtime=Sep 24 06:39:09 'module' object has no
>> attribute 'GitRepo'
>> 
>> It's not clear to me how to resolve this.  Any pointers would be greatly
>> appreciated.
> Sorry, right now I don't have the time to test this properly.
>
> Otherwise, I'd submit:

OK, so the sample git_kernel.srv also needs to be modified to not pass
an argument to get(), since it no longer accepts one.  It also appears
as though build has been rolled into install, so I got rid of the
build() directive.  After that, I ran into a mismatch between the
directory name pushed to the test system and the directory expected:

09/24 10:05:00 WARNI|git_kernel:0098| Builddir /tmp/autoserv-76R5zF/build is 
not persistent (it will be erased in future jobs)
09/24 10:05:00 INFO |git_kernel:0101| Pushing /tmp/kvm to host
09/24 10:06:11 INFO |  autotest:0197| Installing autotest on 
slayer.lab.bos.redhat.com
09/24 10:06:12 INFO |  autotest:0202| Using installation dir /usr/local/autotest
09/24 10:06:12 INFO |  autotest:0219| Could not install autotest using the 
packaging system: No repos to install an autotest client from. Trying other 
methods
09/24 10:06:13 INFO |  autotest:0231| Installation of autotest completed
09/24 10:06:16 INFO |  autotest:0665| Executing 
/usr/local/autotest/bin/autotest /usr/local/autotest/control phase 0
09/24 10:06:31 INFO |server_job:0123| START                  ----  ---- 
timestamp=1285348537    localtime=Sep 24 10:15:37            
09/24 10:06:32 INFO |server_job:0123|    FAIL                build
kernel.extract  timestamp=1285348538    localtime=Sep 24 10:15:38
[Errno 2] No such file or directory: '/tmp/autoserv-76R5zF/build/kvm'

Looks like we pushed the contents of the /tmp/kvm dir, but the script on
the remote end expected the kvm dir to exist under the tmpdir.

Here's the git_kernel.srv I'm using:

repodir = '/tmp/kvm'
giturl = 'git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git'
weburl  = 
'http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=summary'
kconfig = 'http://people.redhat.com/~jmoyer/slayer.config'
myhostname = 'slayer.lab.bos.redhat.com'
kernel = git_kernel.GitKernel(repodir, giturl, weburl)
h = hosts.create_host(myhostname)
kernel.get()
print kernel.get_local_head()
kernel.configure(kconfig)
kernel.install(h)

# add kernel to remote host bootloader, set up next boot entry
h.bootloader.boot_once('autotest')

So, how do I get past this?

Cheers,
Jeff
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to