From cfe2daabb2c146c96b1c291a97f08e58cfcdfd2a Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 8 Oct 2014 11:14:28 +0200 Subject: [PATCH] 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 d4fa0edfd..e04150d21 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