Address @jpetazzo feedback

This commit is contained in:
AJ Bowen
2017-10-30 02:40:34 +01:00
parent 1fec8f506a
commit b243094d66
2 changed files with 1 additions and 4 deletions

View File

@@ -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")

View File

@@ -22,8 +22,6 @@ DEPENDENCIES="
jq
pssh
wkhtmltopdf
jinja2
pdfkit
man
"