From c887c3f27dc385a0d982b9bf8f049a1904ffb88c Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 27 Mar 2022 23:12:03 +0300 Subject: [PATCH] run command --- SprintLib/testers/BaseTester.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/SprintLib/testers/BaseTester.py b/SprintLib/testers/BaseTester.py index 62cf8cc..cc09290 100644 --- a/SprintLib/testers/BaseTester.py +++ b/SprintLib/testers/BaseTester.py @@ -91,11 +91,13 @@ class BaseTester: with open(join(self.path, 'Dockerfile'), 'w') as fs: fs.write(file.text) self.call(f"docker build -t solution_image_{self.solution.id}_{add_name} .") - self.call(f"docker run " - f"--hostname {add_name} " - f"--network solution_network_{self.solution.id} " - f"--name solution_container_{self.solution.id}_{add_name} " - f"-t -d solution_image_{self.solution.id}_{add_name}") + run_command = f"docker run "\ + f"--hostname {add_name} "\ + f"--network solution_network_{self.solution.id} "\ + f"--name solution_container_{self.solution.id}_{add_name} "\ + f"-t -d solution_image_{self.solution.id}_{add_name}" + print('run command', run_command) + self.call(run_command) def execute(self): self.solution.result = CONSTS["testing_status"]