diff --git a/test/lit.cfg b/test/lit.cfg index 52192a82..87f6c895 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -69,7 +69,6 @@ class LibcxxTestFormat(lit.formats.FileBasedTest): source_path] + self.options out, err, exitCode = self.execute_command(cmd) if exitCode != 0: - exec_file.close() report = """Command: %s\n""" % ' '.join(["'%s'" % a for a in cmd]) report += """Exit Code: %d\n""" % exitCode @@ -83,7 +82,6 @@ class LibcxxTestFormat(lit.formats.FileBasedTest): cmd = [exec_path] out, err, exitCode = self.execute_command(cmd) if exitCode != 0: - exec_path.close() report = """Command: %s\n""" % ' '.join(["'%s'" % a for a in cmd]) report += """Exit Code: %d\n""" % exitCode