[libvirt] [PATCH] Do not truncate output of nwfilter2vmtest.sh

Daniel P. Berrange berrange at redhat.com
Thu Mar 27 11:45:06 UTC 2014


When printing test results, nwfilter2vmtest.sh, truncates
the output at 66 or 70 characters. This is very unhelpful
when debugging problems where you want to see the full
output

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 scripts/nwfilter/nwfilter2vmtest.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/nwfilter/nwfilter2vmtest.sh b/scripts/nwfilter/nwfilter2vmtest.sh
index f44f299..a68c771 100644
--- a/scripts/nwfilter/nwfilter2vmtest.sh
+++ b/scripts/nwfilter/nwfilter2vmtest.sh
@@ -68,7 +68,7 @@ EOF
 
 
 tap_fail() {
-  txt=$(echo "$2" | gawk '{print substr($0,1,66)}')
+  txt=$(echo "$2")
   echo "not ok $1 - ${txt}"
   TAP_FAIL_LIST="$TAP_FAIL_LIST $1 "
   TAP_FAIL_CTR=$(($TAP_FAIL_CTR + 1))
@@ -76,7 +76,7 @@ tap_fail() {
 }
 
 tap_pass() {
-  txt=$(echo "$2" | gawk '{print substr($0,1,70)}')
+  txt=$(echo "$2")
   echo "ok $1 - ${txt}"
   TAP_TOT_CTR=$(($TAP_TOT_CTR + 1))
 }
-- 
1.8.5.3




More information about the libvir-list mailing list