On Fri, 2011-03-11 at 21:38 +0800, 朱晨杰 wrote: > Hi, everyone: > I want use autotest to test a mips board. For the board isn't > installed a "standard" Linux, so I fail the test. when I use the > command: > --------- > ../server/autoserv -m root@ip -r ./ > -c ../client/tests/selftest/control > ---------- > I find it always get wrong exit status when executing following > command: > --------- > <autodir>/bin/autotestd_monitor /tmp/autoserv-xxxx 0 0
It'd be more helpful if you try to run the monitor inside your mips board and see what error message it throws. I can go through the code and fix it. > --------- > The exit status is 255 while it should be 0 if the command succeeds. I > am now reading the code of related files, it is hard work. Any one can > supply some helpful info? > > > The client installation doesn't work well either. There is no test > source directory under <autodir>/tests/ directory. I read > server/autotest.py file and find _install_using_send_file() methods > sending files to client host, but it doesn't send test source > directory because "tests/" is in exclude_dir. Can some one tell me > which part sends test source directory. By default, the tests are copied on demand, so the tests will be installed to the machine running autoserv as they are needed on the control file. As I can see you are trying to execute the 'selftest' client control file. So as long as the autotestd_monitor problem is solved, autoserv will compress the contents of selftest and copy it to the client. If you want all tests to be copied to your client (not really recommended), you can modify in global_config.ini the following config [PACKAGES] serve_packages_from_autoserv: True Modify True with False and then all tests will be copied. I will read autotestd_monitor to see if I can find some potential problem, but like I've said it'll be much more helpful if you try to run the command on your mips board. Cheers, Lucas _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest