Forráskód Böngészése

now only reports if cleaning up after buildings fails. There is an open issue that there is a file that can not be deleted because of pathname too long.

cajuskamer 6 éve
szülő
commit
46630d07b7
1 módosított fájl, 12 hozzáadás és 4 törlés
  1. 12 4
      docker-build.py

+ 12 - 4
docker-build.py

@@ -115,12 +115,20 @@ for target in targets:
     else:
         print('FAILED after', duration)
 
-     # Clean up
+    # Clean up
+    chdir(gluondir)
     print('Cleaning up...', end=''); stdout.flush()
     with open('%s/%s_cleanup.log' % (logdir, target), 'w') as log:
-        check_call('make dirclean V=s', stdout=log, stderr=log, shell=True)
-    print('OK'); stdout.flush()
-
+        print('Cleaning up...', end=''); stdout.flush()
+    with open('%s/%s_cleanup.log' % (logdir, target), 'w') as log:
+        rc = call('make dirclean V=s', stdout=log, stderr=log, shell=True) # clean all
+        # rc = call('make clean GLUON_TARGET=%s V=s' % (target), stdout=log, stderr=log, shell=True) # clean target specific 
+    if rc == 0:
+        print('OK')
+    else:
+        print('FAILED')
+    stdout.flush()
+    
 print('Creating SHA512 sums for images... ', end=''); stdout.flush()
 for d in (factorydir, sysupdir):
     chdir(d)