From b243094d6645d5517924b6cd15a5c44ae41c86c3 Mon Sep 17 00:00:00 2001 From: AJ Bowen Date: Mon, 30 Oct 2017 02:40:34 +0100 Subject: [PATCH] Address @jpetazzo feedback --- autotest/autotest.py | 3 +-- prepare-vms/workshopctl | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/autotest/autotest.py b/autotest/autotest.py index 3c58d6de..4de06bc3 100755 --- a/autotest/autotest.py +++ b/autotest/autotest.py @@ -87,11 +87,10 @@ def wait_for_success(wait_for=None): def check_exit_code(): token = uuid.uuid4().hex data = "echo {} $?\n".format(token) - subprocess.check_call(["tmux", "send-keys", "{}".format(data)]) + subprocess.check_call(["tmux", "send-keys", data]) time.sleep(0.5) screen = subprocess.check_output(["tmux", "capture-pane", "-p"]) output = [x for x in screen.split("\n") if x] - #if x.startswith(token)] ec = [x for x in output if x.startswith(token)] if not ec: raise Exception("Couldn't retrieve exit code") diff --git a/prepare-vms/workshopctl b/prepare-vms/workshopctl index c0140555..c8b26861 100755 --- a/prepare-vms/workshopctl +++ b/prepare-vms/workshopctl @@ -22,8 +22,6 @@ DEPENDENCIES=" jq pssh wkhtmltopdf - jinja2 - pdfkit man "