From 8f83bb0c15aa7ea04220a1529b0e68f9c6b465b5 Mon Sep 17 00:00:00 2001 From: Pier Carlo Chiodi Date: Mon, 30 Jan 2017 19:45:02 +0100 Subject: [PATCH] docs theme + travis debug 2 --- docs/conf.py | 3 +++ tests/live_tests/docker.py | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 831e1de4..c47aeefd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,9 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import sys +import os + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. diff --git a/tests/live_tests/docker.py b/tests/live_tests/docker.py index 39442e08..baafd98f 100644 --- a/tests/live_tests/docker.py +++ b/tests/live_tests/docker.py @@ -175,6 +175,18 @@ def start(self): for mount in self.get_mounts(): with open(mount["var_path"], "r") as f: print(f.read()) + process = subprocess.Popen( + cmd.split(), + stdin=None, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE + ) + stdout, stderr = process.communicate() + print("STDOUT:") + print(stdout) + print("STDERR:") + print(stderr) + raise InstanceError( "Can't run detached instance: {}\n" "cmd:\n"