Fix failed error reporting back to CI 58/130558/1
authorhyokeun <hyokeun.jeon@samsung.com>
Tue, 23 May 2017 02:30:28 +0000 (11:30 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Tue, 23 May 2017 02:30:28 +0000 (11:30 +0900)
Change-Id: Ib7b3602267be7981819a769feb8edce58f32f323

build-package

index 207db69..2aaf74b 100755 (executable)
@@ -344,9 +344,9 @@ def build(apiurl, project, package, timeout):
 
             print 'waiting for %s: %s' % (package, splitted[1:])
 
-        if 'failed' in splitted[1:]:
-            print "OBS build failed in project=%s package=%s" %(project, package)
-            return 1
+            if 'failed' in splitted[1:]:
+                print "OBS build failed in project=%s package=%s" %(project, package)
+                return 1
 
         if not statuses:
             return 0