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

[libvirt] [PATCH] Slim xmllint test output



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 redhat com>
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

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