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

Michal Privoznik mprivozn at redhat.com
Mon Nov 25 14:22:38 UTC 2013


As of 21685c955 the 'distcheck' is broken. The problem is, by default it
copies all the necessary files and make them read only. However, pci
device detach test doesn't work that way. The PCI device configs are
stored within our tests/ directory and need to be writable (detaching
and resetting means writing into the config file). Hence, we must make
those files writable again.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 tests/Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index e46d5f7..29dbf76 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -921,3 +921,8 @@ endif ! WITH_CIL
 
 CLEANFILES = *.cov *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda *.cmi *.cmx \
 	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/
-- 
1.8.4.4




More information about the libvir-list mailing list