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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Jan 2 11:30:28 CET 2010


Revision: 7823
          http://gar.svn.sourceforge.net/gar/?rev=7823&view=rev
Author:   wahwah
Date:     2010-01-02 10:30:28 +0000 (Sat, 02 Jan 2010)

Log Message:
-----------
mGAR v2-checkpkg: Adding colors to test result reporting.

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

Modified: csw/mgar/gar/v2-checkpkg/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2-checkpkg/bin/checkpkg	2010-01-02 10:29:31 UTC (rev 7822)
+++ csw/mgar/gar/v2-checkpkg/bin/checkpkg	2010-01-02 10:30:28 UTC (rev 7823)
@@ -552,12 +552,13 @@
 			plugin_base_name=`basename ${plugin}`
 			plugin_log="${EXTRACTDIR}/${plugin_base_name}.log"
 			log_files="${log_files} ${plugin_log}"
+			printf "TEST: ${plugin} running..."
 			${plugin} $extra_options -e "${EXTRACTDIR}" ${pkgnames} > "${plugin_log}" 2>&1
 			if [[ "$?" -ne 0 ]]; then
-				print "TEST: ${plugin} [FAIL]"
+				printf "\rTEST: ${plugin} \\033[1;31;40m[OK]\\033[00m        \\n"
 				test_suite_ok=0
 			else
-				print "TEST: ${plugin} [OK]"
+				printf "\rTEST: ${plugin} \\033[0;32;40m[OK]\\033[00m        \\n"
 			fi
 		else
 			debugmsg "'${plugin}' is not executable"


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