Skip to content

Commit

Permalink
python: Added parallel build make arguments to opp tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed Nov 28, 2024
1 parent dec1b3f commit f53e3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/inet/test/opp.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run_protected(self, **kwargs):
subprocess_result = run_command_with_logging(args, cwd=test_directory, env=self.simulation_project.get_env())
if subprocess_result.returncode != 0:
return self.task_result_class(self, result="ERROR", stderr=subprocess_result.stderr)
args = ["make", f"MODE={self.mode}"]
args = ["make", f"MODE={self.mode}", "-j", str(multiprocessing.cpu_count())]
subprocess_result = run_command_with_logging(args, cwd=test_directory, env=self.simulation_project.get_env())
if subprocess_result.returncode != 0:
return self.task_result_class(self, result="ERROR", stderr=subprocess_result.stderr)
Expand Down Expand Up @@ -97,7 +97,7 @@ def run_protected(self, **kwargs):
test_directory = self.simulation_project.get_full_path(self.test_folder)
lib_directory = os.path.join(test_directory, "lib")
if os.path.exists(lib_directory):
args = ["make", f"MODE={self.mode}"]
args = ["make", f"MODE={self.mode}", "-j", str(multiprocessing.cpu_count())]
subprocess_result = run_command_with_logging(args, cwd=lib_directory, env=self.simulation_project.get_env())
if subprocess_result.returncode != 0:
raise Exception("Cannot build lib")
Expand Down

0 comments on commit f53e3ea

Please sign in to comment.