[PATCH 2/1] build: clean up stray files after 'make check'

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

 



'make distcheck' complained:

ERROR: files left in build directory after distclean:
./python/libvirt.pyc
./tests/commandhelper.log

* tests/commandtest.c (test16): Unlink log file.
* python/Makefile.am (CLEANFILES): Clean up compiled python files.

Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
---
 python/Makefile.am           |  3 ++-
 tests/commanddata/test21.log | 12 ++++++++++++
 tests/commandtest.c          |  2 +-
 3 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 tests/commanddata/test21.log

diff --git a/python/Makefile.am b/python/Makefile.am
index ba444ef..767d807 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -142,7 +142,8 @@ uninstall-local:
 	rm -f $(DESTDIR)$(pyexecdir)/libvirt_lxc.py
 	rm -f $(DESTDIR)$(pyexecdir)/libvirt_qemu.py

-CLEANFILES= $(GENERATED) $(QEMU_GENERATED) $(LXC_GENERATED) $(GENERATE).stamp
+CLEANFILES= $(GENERATED) $(QEMU_GENERATED) $(LXC_GENERATED) $(GENERATE).stamp \
+	*.pyc

 else
 all:
diff --git a/tests/commanddata/test21.log b/tests/commanddata/test21.log
new file mode 100644
index 0000000..1b59206
--- /dev/null
+++ b/tests/commanddata/test21.log
@@ -0,0 +1,12 @@
+ENV:DISPLAY=:0.0
+ENV:HOME=/home/test
+ENV:HOSTNAME=test
+ENV:LANG=C
+ENV:LOGNAME=testTMPDIR=/tmp
+ENV:PATH=/usr/bin:/bin
+ENV:USER=test
+FD:0
+FD:1
+FD:2
+DAEMON:no
+CWD:/tmp
diff --git a/tests/commandtest.c b/tests/commandtest.c
index 6cb88c5..68398ac 100644
--- a/tests/commandtest.c
+++ b/tests/commandtest.c
@@ -891,7 +891,7 @@ static int test21(const void *unused ATTRIBUTE_UNUSED)
         goto cleanup;
     }

-    ret = 0;
+    ret = checkoutput("test21");
 cleanup:
     VIR_FREE(outbuf);
     VIR_FREE(errbuf);
-- 
1.8.1.4

--
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]