From 4d443e654b8a9a35a0da70ac5580925425eb249d Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 5 Nov 2018 13:12:31 +0000 Subject: [PATCH] tests: replace another shell script. --- tests/ansible/mitogen_ansible_playbook.py | 6 ++++++ tests/ansible/mitogen_ansible_playbook.sh | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 tests/ansible/mitogen_ansible_playbook.py delete mode 100755 tests/ansible/mitogen_ansible_playbook.sh diff --git a/tests/ansible/mitogen_ansible_playbook.py b/tests/ansible/mitogen_ansible_playbook.py new file mode 100755 index 00000000..3af1791c --- /dev/null +++ b/tests/ansible/mitogen_ansible_playbook.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +import os +import subprocess +import sys +os.environ['ANSIBLE_STRATEGY'] = 'mitogen_linear' +subprocess.check_call(['./run_ansible_playbook.py'] + sys.argv[1:]) diff --git a/tests/ansible/mitogen_ansible_playbook.sh b/tests/ansible/mitogen_ansible_playbook.sh deleted file mode 100755 index 462d985b..00000000 --- a/tests/ansible/mitogen_ansible_playbook.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -export ANSIBLE_STRATEGY=mitogen_linear -exec ./run_ansible_playbook.py "$@"