testing directory

This commit is contained in:
Egor Matveev
2022-05-02 23:30:05 +03:00
parent ad0e4a641c
commit ad62672452
3 changed files with 3 additions and 23 deletions

View File

@@ -22,7 +22,7 @@ class BaseTester:
def before_test(self):
files = [
file
for file in listdir(self.solution.testing_directory)
for file in listdir(self.path)
if file.endswith("." + self.solution.language.file_type)
]
code = self.solution.exec_command(
@@ -40,7 +40,7 @@ class BaseTester:
)
if code != 0:
raise TestException("RE")
result = open(join(self.solution.testing_directory, "output.txt"), "r").read().strip().replace('\r\n', '\n')
result = open(join(self.path, "output.txt"), "r").read().strip().replace('\r\n', '\n')
print("got result", result)
if self.checker_code is not None:
print('using checker')