Re: [PATCH] tests: Make pci config files writable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/25/2013 07:24 AM, Daniel P. Berrange wrote:

>>  	object-locking-files.txt
>> +
>> +# Some tests tend to write into files. Notably, the virpcitest, which detach
>> +# and reset a pci device (achieved byt writing into a pci config file).
>> +check-local:
>> +	chmod -R u+w $(srcdir)/virpcitestdata/

NACK.  This will fail if $(srcdir) is on a read-only mount point (such
as a CDROM).

> 
> I seem to recall eric saying on IRC that we shouldn't do this, and that
> any files the test suite writes to should be located in $(builddir)
> not $(srcdir).

Indeed.  The correct way is to move these files to $(builddir) (which is
always writable) and quit trying to ship them in the tarball - they only
need to exist for the duration of the test, so the tarball only needs
rules on how to generate the files into $(builddir) at the start of the
test.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]