[libvirt] [PATCH] Slim xmllint test output

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

 



This patch simply slims down the output from the
xmllint tests to not overrun a single line, only
printing the relevant information about the xml file
(parent directory and name, not fully qualified
path). Purely cosmetic, but more useful IMO.

Thanks,
Cole
commit e167f39c756299042c550a451e7e33c0e8b3b44d
Author: Cole Robinson <crobinso@xxxxxxxxxx>
Date:   Thu Oct 2 15:27:46 2008 -0400

    Slim down domainschematest output.

diff --git a/tests/domainschematest b/tests/domainschematest
index 7ebcefc..c841c86 100755
--- a/tests/domainschematest
+++ b/tests/domainschematest
@@ -13,7 +13,7 @@ do
   for xml in $XML
   do
     n=`expr $n + 1`
-    printf "%4d) %-60s  " $n $xml
+    printf "%4d) %.60s  " $n $(basename $(dirname $xml))"/"$(basename $xml)
     result=`xmllint --relaxng $srcdir/../docs/libvirt.rng --noout $xml 2>&1`
     ret=$?
     if test $ret = 0; then
--
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]