# HG changeset patch # User john.levon@xxxxxxx # Date 1228241583 28800 # Node ID 583d6aff027f0c0348f6c15919b3a2d36a40164c # Parent bcd052e6ef9dd3a56f2cadee8198a622e3f2068d Fix pylint on Solaris Use a good enough awk. Signed-off-by: John Levon <john.levon@xxxxxxx> 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="" } { _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools