On 11/19/2011 03:15 PM, Frank Becker wrote: > On 31.08.10 07:56, divya wrote: > > Hi, > >> Autotest.client throws the following error while importing git >> from autotest_lib.server import git >> ImportError: No module named server > Since that was reported shortly before kernel.org went off-line for a > long time: Did you resolve that issue? I guess the basic > misunderstanding is that you try to run a server test as a client > test.
I've looked at the issue. What divya was trying to do was to import the GitRepo class straight from server/git.py in order to work on the LTP client test (if I am guessing correctly, the idea is to fetch/clone LTP from a git repo). Turns out this module can't be imported from server, as the client does not see anything on the server API realm. The client.common_lib.version_control lib does contain the GitRepo implementation he could have used. However, I believe that API is not as convenient as the one we have been using on the virt tests, hence, we've put together pull request #95, as well as send the patches to the mailing list. https://github.com/autotest/autotest/pull/95 I believe it's a better solution (needs a bit more work), so once this is upstream divya can resume with checking out git code on tests. I'd love to hear some feedback on this approach, Lucas _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
