def postExecutionCleanup(self, outputDir):
        self.removePath(os.path.join(outputDir, "cumulus_disk_storage"))

        logDir = os.path.join(outputDir, "logs")
        logging.info("searching for logs in %s", logDir)

        if not os.path.exists(logDir):
            logging.info("Log directory %s does not exist")
            return

        for logfile in os.listdir(logDir):
            fullPath = os.path.join(logDir, logfile)
            if os.path.isfile(fullPath):
                extractErrorMessagesFromLogfile(fullPath, outputDir)

        try:
            targetLogPath = os.path.join(outputDir, "cumulus_logs.tar.gz")

            subprocess.call([(targetLogPath, logDir) % 'tar czf %s %s'], shell=True)
        except:
            logging.error("Tried to copy %s to %s but failed: %s",
                          logDir,
                          targetLogPath,
                          traceback.format_exc())
dataset/ETHPy150Open ufora/ufora/ufora/test/MultiMachineTestRunner.py/MultiMachineTestRunner.postExecutionCleanup/swapped operands of `%`