#244: Find the best way how to use fas.conf --------------------+------------------------------------------------------- Reporter: kparal | Owner: kparal Type: task | Status: assigned Priority: major | Milestone: 0.4.4 Component: core | Resolution: Keywords: | --------------------+------------------------------------------------------- Changes (by kparal):
* owner: => kparal * status: new => assigned
Comment:
My findings:
* Autotest server transfers the whole test directory to the client. If we place any additional file into testdir on the server, it will also be available on the client. * Autotest uses tar to archive the whole test directory. I tried to place symlink to fas.conf into it, but tar by default archives the symlink, not the symlink target. * The code responsible for calling tar is in autotest/client/common_lib/base_packages.py (tar_package() method). * I have managed to add autotest/client/common_lib/site_packages.py which overrides default tar_package() method.
Two possible solutions: 1. In our site-specific tar_package() method let's add '-h' option to tar (de-referencing symlinks). The whole method code must be duplicated. 2. In our site-specific tar_package() let's forcibly copy /etc/autoqa/fas.conf to test dir and then call the parent tar_package() method. No code is duplicated.
Whichever solution we choose I think it's better than maintaining fas.conf on all autotest clients. The first solution seems cleaner to me although it duplicates the original code. Example code attached.