Copy mic log if non-kvm environment 25/126925/1
authorhyokeun <hyokeun.jeon@samsung.com>
Tue, 25 Apr 2017 09:11:41 +0000 (18:11 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Tue, 25 Apr 2017 09:11:41 +0000 (18:11 +0900)
Change-Id: I17fb481499983f7c99e1a2a1822a670ee993a088

job_imager.py

index 0d2ac5a..99647b8 100755 (executable)
@@ -289,6 +289,12 @@ def main():
 
         os.system('sudo chmod 0777 -R %s' % basedir)
 
+        try:
+            # Copy logfile to sync directory
+            shutil.copy(log, os.path.join(outdir, build_id, 'images', name))
+        except Exception as err:
+            print 'LOGCPERROR: %s' % err
+
     status = 'success'
     if ret:
         print 'Error: mic returned %d' % ret