[Pkg-libvirt-commits] [libguestfs] 26/179: log: tests: fix appending the virt-log output
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 31 19:08:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit cfe2daabb2c146c96b1c291a97f08e58cfcdfd2a
Author: Pino Toscano <ptoscano at redhat.com>
Date: Wed Oct 8 11:14:28 2014 +0200
log: tests: fix appending the virt-log output
virt-log uses /dev/stdout as output file for guestfs_download, which
will open the output file in truncate mode, truncating the output of
test-virt-log.sh.
Make sure to redirect the output of virt-log so it does not clobber the
test output.
Thanks to Richard for the hint.
---
cat/test-virt-log.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cat/test-virt-log.sh b/cat/test-virt-log.sh
index d4fa0ed..e04150d 100755
--- a/cat/test-virt-log.sh
+++ b/cat/test-virt-log.sh
@@ -45,6 +45,6 @@ for f in ../tests/guests/{fedora,debian,ubuntu}.img; do
echo
continue
fi
- $VG virt-log -a "$f"
+ $VG virt-log -a "$f" |& cat
echo
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list