Skip to content

Commit

Permalink
docs theme + travis debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Jan 30, 2017
1 parent 43ee3c7 commit 6ed0ad9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
on_rtd = os.environ.get("READTHEDOCS", None) == "True"

if not on_rtd:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
2 changes: 1 addition & 1 deletion tests/live_tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LiveScenario(ARouteServerTestCase):
R_SET = {}
INSTANCES = []

DEBUG = False
DEBUG = True
DO_NOT_STOP_INSTANCES = False

CONFIG_BUILDER_CLASS = BIRDConfigBuilder
Expand Down
3 changes: 3 additions & 0 deletions tests/live_tests/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def start(self):
res = self._run(cmd, detached=True)
time.sleep(3)
if not self.is_running():
for mount in self.get_mounts():
with open(mount["var_path"], "r") as f:
print(f.read())
raise InstanceError(
"Can't run detached instance: {}\n"
"cmd:\n"
Expand Down

0 comments on commit 6ed0ad9

Please sign in to comment.