From 705d77abfbe4b151ed2d6486548b904619af0309 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 4 Jan 2016 20:36:15 +0100 Subject: [PATCH] Also handle the doc path not existing at all. --- tests/integration/features/test_misc.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/integration/features/test_misc.py b/tests/integration/features/test_misc.py index 2d3dcd75f..dc3cebdfa 100644 --- a/tests/integration/features/test_misc.py +++ b/tests/integration/features/test_misc.py @@ -36,9 +36,12 @@ def update_documentation(): doc_path = os.path.join(base_path, 'html', 'doc') script_path = os.path.join(base_path, '..', 'scripts') - if os.path.exists(doc_path): - if all(docutils.docs_up_to_date(p) for p in os.listdir(doc_path)): - return + if not os.path.exists(doc_path): + # On CI, we can test this without actually building the docs + return + + if all(docutils.docs_up_to_date(p) for p in os.listdir(doc_path)): + return try: subprocess.call(['asciidoc'], stdout=subprocess.DEVNULL,