Skip to content
Snippets Groups Projects
Commit 997d22b0 authored by Jithu Murugan's avatar Jithu Murugan
Browse files

Revert "- Added a 10 minute timeout for testing if any specific command hangs...

Revert "- Added a 10 minute timeout for testing if any specific command hangs on subprocess.run command!"

This reverts commit 92f210b5.
parent 4491132f
No related branches found
No related tags found
2 merge requests!6ci(dedal): implement coverage calculation for the library,!4feat(spack_operation): implement setup_spack_env functionality
Pipeline #59701 passed with stages
in 29 minutes and 6 seconds
...@@ -30,7 +30,7 @@ def run_command(*args, logger=logging.getLogger(__name__), info_msg: str = '', e ...@@ -30,7 +30,7 @@ def run_command(*args, logger=logging.getLogger(__name__), info_msg: str = '', e
exception=None, **kwargs): exception=None, **kwargs):
try: try:
logger.info(f'{info_msg}: args: {args}') logger.info(f'{info_msg}: args: {args}')
return subprocess.run(args, **kwargs, timeout=10 * 60) return subprocess.run(args, **kwargs)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
if exception_msg is not None: if exception_msg is not None:
logger.error(f"{exception_msg}: {e}") logger.error(f"{exception_msg}: {e}")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment