[csw-devel] SF.net SVN: opencsw:[355] buildfarm/bin/generate-unstable

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Mar 11 11:24:06 CET 2011


Revision: 355
          http://opencsw.svn.sourceforge.net/opencsw/?rev=355&view=rev
Author:   dmichelsen
Date:     2011-03-11 10:24:06 +0000 (Fri, 11 Mar 2011)

Log Message:
-----------
Testing for exit code 2 in chkcat.

chkcat returns 1 on warnings and 2 on errors. Testing only for 2; if chkcat
returns 1, the process continues.

Modified Paths:
--------------
    buildfarm/bin/generate-unstable

Modified: buildfarm/bin/generate-unstable
===================================================================
--- buildfarm/bin/generate-unstable	2011-03-11 10:10:30 UTC (rev 354)
+++ buildfarm/bin/generate-unstable	2011-03-11 10:24:06 UTC (rev 355)
@@ -26,13 +26,16 @@
         echo "bldcat failed in $(pwd)."
         false
       fi
-      ## chkcat cannot be used like this, because it returns non-zero even if
-      ## there are no errors.
-      # if ! chkcat -e catalog
-      # then
-      #   echo "chkcat returned an error in $(pwd)."
-      #   false
-      # fi
+      if chkcat -e catalog
+      then
+        echo chkcat returned no errors
+      else
+      	r="$?"
+      	if [[ "${r}" -eq 2 ]]; then
+          echo "chkcat returned an error in $(pwd)."
+          false
+        fi
+      fi
     popd
   done
   popd


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