From 85b5c78c21d7521caff095841f702dfc1096e0bf Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Mon, 25 Feb 2019 17:54:53 +0100
Subject: [PATCH] REFAC: blacklist ApplicationExample from cookbook for now

---
 Documentation/Cookbook/Scripts/RunExamples.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/Cookbook/Scripts/RunExamples.py b/Documentation/Cookbook/Scripts/RunExamples.py
index c8a1e005b4..7fdd7ea2e9 100755
--- a/Documentation/Cookbook/Scripts/RunExamples.py
+++ b/Documentation/Cookbook/Scripts/RunExamples.py
@@ -28,12 +28,19 @@ import re
 
 from rst_utils import examples_usage_regex
 
+# blacklist ApplicationExample for now because it does not produce a binary
+# we can run (we could patch this script to support applications in the future)
+blacklist = ["ApplicationExample"]
+
 def run_example(otb_root, otb_data, name, dry_run):
     """
     Run an example by name
     Assumes the current working directory is an OTB build
     """
 
+    if name in blacklist:
+        return
+
     # Find binary in bin/
     binary_names = glob.glob(join("bin", name))
     if len(binary_names) == 0:
-- 
GitLab