Browse code

Bug fix for docker-build make check code

Change-Id: If79d45bf9c7243be8cc9f1dd0ec7aee24380efad
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3765
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Chang Lee <changlee@vmware.com>

Rui Gu authored on 2017/09/14 06:04:55
Showing 1 changed files
... ...
@@ -573,8 +573,6 @@ class PackageUtils(object):
573 573
                     returnVal = CommandUtils().runCommandInShell(cmd, logFile)
574 574
                     testLogFile = destLogPath+"/"+package+"-test.log"
575 575
                     shutil.copyfile(rpmLog, testLogFile)
576
-                else:
577
-                    shutil.copy2(rpmLog, destLogPath)
578 576
         self.logger.info("RPM build is successful")
579 577
 
580 578
         # Verify RPM and SRPM files exist as success criteria