Skip to content
Snippets Groups Projects
Commit 4491132f 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 ca24dca8.
parent 6e2f574f
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
...@@ -104,7 +104,7 @@ def test_run_command_success(mocker): ...@@ -104,7 +104,7 @@ def test_run_command_success(mocker):
mock_logger = MagicMock() mock_logger = MagicMock()
result = run_command('bash', '-c', 'echo hello', logger=mock_logger, info_msg="Running echo") result = run_command('bash', '-c', 'echo hello', logger=mock_logger, info_msg="Running echo")
mock_logger.info.assert_called_with("Running echo: args: ('bash', '-c', 'echo hello')") mock_logger.info.assert_called_with("Running echo: args: ('bash', '-c', 'echo hello')")
mock_subprocess.assert_called_once_with(('bash', '-c', 'echo hello'), timeout=600) mock_subprocess.assert_called_once_with(('bash', '-c', 'echo hello'))
assert result.returncode == 0 assert result.returncode == 0
......
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