Skip to content

Commit

Permalink
fix files log
Browse files Browse the repository at this point in the history
  • Loading branch information
denini08 committed May 19, 2021
1 parent f61c672 commit 8904c2f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions shaker/tool_maven.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@

class Maven(BaseTool):
def setup(self):
arguments = "--batch-mode --update-snapshots --fail-never --quiet -DskipTests"
arguments = "--batch-mode --update-snapshots --fail-never -DskipTests"
command = f"mvn {arguments} clean install"
stdout_ = open(self.output_folder /
"exec_setup.out", "a")
stderr_ = open(self.output_folder / "exec_setup.err", "a")
# print(f"> {command}")
subprocess_run(command, cwd=str(self.directory), stdout=self.output_folder /
"exec_setup.out", stderr=self.output_folder / "exec_setup.err")
subprocess_run(command, cwd=str(self.directory),
stdout=stdout_, stderr=stderr_)

def run_tests(self, report_folder):
command = f"mvn --quiet test"
command = f"mvn test --fail-never --batch-mode"
# print(f"> {command}")
subprocess_run(command, cwd=str(self.directory), stdout=self.output_folder /
"exec_stress.out", stderr=self.output_folder / "exec_stress.err")

stdout_ = open(self.output_folder /
"exec_stress.out", "a")
stderr_ = open(self.output_folder / "exec_stress.err", "a")

subprocess_run(command, cwd=str(self.directory),
stdout=stdout_, stderr=stderr_)

def post_tests(self, report_folder):
# Copy reports
Expand Down

0 comments on commit 8904c2f

Please sign in to comment.