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

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

parent c3166ff5
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 #59686 failed with stages
in 1 minute and 16 seconds
......@@ -30,7 +30,7 @@ def run_command(*args, logger=logging.getLogger(__name__), info_msg: str = '', e
exception=None, **kwargs):
try:
logger.info(f'{info_msg}: args: {args}')
return subprocess.run(args, **kwargs)
return subprocess.run(args, **kwargs, timeout=10 * 60)
except subprocess.CalledProcessError as e:
if exception_msg is not None:
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