[et-mgmt-tools] [PATCH] Fix pylint on Solaris

john.levon at sun.com john.levon at sun.com
Tue Dec 2 18:13:12 UTC 2008


# HG changeset patch
# User john.levon at sun.com
# Date 1228241583 28800
# Node ID 583d6aff027f0c0348f6c15919b3a2d36a40164c
# Parent  bcd052e6ef9dd3a56f2cadee8198a622e3f2068d
Fix pylint on Solaris

Use a good enough awk.

Signed-off-by: John Levon <john.levon at sun.com>

diff --git a/tests/pylint-virtinst.sh b/tests/pylint-virtinst.sh
--- a/tests/pylint-virtinst.sh
+++ b/tests/pylint-virtinst.sh
@@ -82,6 +82,9 @@ addchecker "Design"         # Things lik
                             #             "Too man public methods"
 addchecker "Similarities"   # Finds duplicate code (enable this later?)
 
+AWK=awk
+[ `uname -s` = 'SunOS' ] && AWK=nawk
+
 pylint --ignore=coverage.py, $FILES \
   --reports=n \
   --output-format=colorized \
@@ -99,7 +102,7 @@ pylint --ignore=coverage.py, $FILES \
         -ve "$URLTEST_ACCESS" \
         -ve "$UNUSED_ARGS" \
         -ve "$PROT_MEM_BUGS" | \
-  awk '\
+  $AWK '\
 # Strip out any "*** Module name" lines if we dont list any errors for them
 BEGIN { found=0; cur_line="" }
 {




More information about the et-mgmt-tools mailing list