Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-237-Support-for-resuming-failed-workflow-executions 712a26e1b -> 4b23a0639 (forced update)
close processes test for appveyor fix Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/4b23a063 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/4b23a063 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/4b23a063 Branch: refs/heads/ARIA-237-Support-for-resuming-failed-workflow-executions Commit: 4b23a063901f873b77a65d01dc75f10e9c55da0b Parents: 53dc64e Author: max-orlov <[email protected]> Authored: Thu Jun 29 10:55:54 2017 +0300 Committer: max-orlov <[email protected]> Committed: Thu Jun 29 11:24:04 2017 +0300 ---------------------------------------------------------------------- .../workflows/executor/test_process_executor.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/4b23a063/tests/orchestrator/workflows/executor/test_process_executor.py ---------------------------------------------------------------------- diff --git a/tests/orchestrator/workflows/executor/test_process_executor.py b/tests/orchestrator/workflows/executor/test_process_executor.py index 6cac288..2ae91d7 100644 --- a/tests/orchestrator/workflows/executor/test_process_executor.py +++ b/tests/orchestrator/workflows/executor/test_process_executor.py @@ -39,6 +39,9 @@ from tests.fixtures import ( # pylint: disable=unused-import from . import MockContext +IS_WINDOWS = os.name == 'nt' + + class TestProcessExecutor(object): def test_plugin_execution(self, executor, mock_plugin, model): @@ -139,6 +142,10 @@ def model(tmpdir): @operation def freezing_task(holder_path, **_): holder = FilesystemDataHolder(holder_path) - holder['subproc'] = subprocess.Popen('while true; do sleep 5; done', shell=True).pid + if IS_WINDOWS: + command = 'for %a in (0 1 2 3 4 5 6 7 8 9 10) do timeout 60' + else: + command = 'while true; do sleep 5; done' + holder['subproc'] = subprocess.Popen(command, shell=True).pid while True: time.sleep(5)
