On Tue, Aug 14, 2012 at 12:43 AM, Mike <[email protected]> wrote:
> Hi Lucas
>
> Should I change it into replace('/client/tmp/','client/tests/')
> so that only the tmp dir under the client will be replaced??
> If so I will send the version 4
>
> Any comments?
Yes. There are other possible sources of tests, not only client/tests.
So this solution is incomplete, therefore I still believe the most
effective way of handling it is in the test class.
You need to also look in client/site-tests and in global_config.ini,
section COMMON, key test_dir. An excerpt of the file:
[COMMON]
# The path for the toplevel autotest directory
autotest_top_path: /usr/local/autotest
# The path to look for test modules
test_dir:
# The path for tests output directory
test_output_dir:
I'll add these two directories to the lookup list, and send an updated version.
Thanks,
Lucas
> Thanks
> Mike
>
> 在 2012-08-12日的 22:47 +0800,Mike Qiu写道:
>> Currently, src dir has been changed to client/tmp/<tests>/src
>> in client/shared/test.py. But the code where make the change
>> maybe a waste of time, because it, src dir, may be removed
>> in the file client/shared/base_utils.py.
>>
>> To avoid this , these two patches have been made.
>>
>> This version changes the use of a chain of 3 os.path.dirname
>> into replace('/tmp/','/tests/') from v2
>>
>> Signed-off-by: Mike Qiu <[email protected]>
>>
>> Mike Qiu (2):
>> client.shared.based_utils:Make and copy the src dir to
>> client/tmp/<test>/
>> client.shared.test:Avoid to make and copy src dir
>>
>> client/shared/base_utils.py | 9 +++++++--
>> client/shared/test.py | 6 ------
>> 2 files changed, 7 insertions(+), 8 deletions(-)
>>
>
>
--
Lucas
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel