[csw-devel] SF.net SVN: gar:[9167] csw/mgar/gar/v2/bin/checkpkg

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Mar 14 19:43:48 CET 2010


Revision: 9167
          http://gar.svn.sourceforge.net/gar/?rev=9167&view=rev
Author:   wahwah
Date:     2010-03-14 18:43:48 +0000 (Sun, 14 Mar 2010)

Log Message:
-----------
mGAR v2: checkpkg, better screen output.

Modified Paths:
--------------
    csw/mgar/gar/v2/bin/checkpkg

Modified: csw/mgar/gar/v2/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg	2010-03-14 17:00:50 UTC (rev 9166)
+++ csw/mgar/gar/v2/bin/checkpkg	2010-03-14 18:43:48 UTC (rev 9167)
@@ -296,7 +296,6 @@
 module_name_format="%-40s"
 md5sums=`gmd5sum "$@" | awk '{print $1}'`
 if [[ -d "${checkpkg_module_dir}" ]]; then
-	echo "Running modular tests in ${checkpkg_module_dir}"
 	for plugin in "${checkpkg_module_dir}/${checkpkg_module_tag}"*; do
 		if [[ -x "${plugin}" ]]; then
 			plugin_base_name=`basename ${plugin}`
@@ -340,17 +339,17 @@
 done
 
 # This check is special; it uses one executable for all the checks written in Python.
-printf "${BOLD}${module_name_format}${COLOR_RESET} running..." "Python tests"
+print "Running Python tests..."
 ${command_basedir}/checkpkg_run_modules.py \
     ${extra_options} \
     -b "${checkpkg_stats_basedir}" \
     -o "${EXTRACTDIR}/tags.python-checks" \
     ${md5sums}
 if [[ "$?" -ne 0 ]]; then
-  printf "\r${module_name_format} ${RED}[ERROR]${COLOR_RESET}        \\n" "${plugin_name}"
+  print "There was a problem running Python tests."
   test_suite_ok=0
 else
-  printf "\r${module_name_format} [Done]        \\n" "${plugin_name}"
+  print "Python tests done."
 fi
 
 if [[ ${test_suite_ok} -ne 1 ]]; then


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list