mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user