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 patches have been made.
After this change, should copy the patch files to the parent dir
of srcdir.
This version has make changes from v3:
1) Change replace('/tmp/','/tests/') to replace('/client/tmp/',
'/client/tests/')
This avoid other tmp dir to be changed into tests
2) The func which copys the patch files to parent dir of srcdir
has been moved from client/shared/test.py to
client/shared/base_utils.py , because it need the parent dir of
srcdir to be setup first
These changes, especially the 2), have made the autotest avoid to copy
the patch files and setup the src dir when it runs for every time.
Now it just need to do this when it first run or the version changed.
Mike Qiu (2):
client.shared.test:Avoid to make and copy src dir
client.shared.based_utils:Make and copy the src dir to
client/tmp/<test>/
client/shared/base_utils.py | 17 ++++++++++++++---
client/shared/test.py | 11 -----------
2 files changed, 14 insertions(+), 14 deletions(-)
--
1.7.7.6
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel