From 8a64506a8a01a2905d1f8f057633896af445d51f Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Mon, 19 Jan 2015 12:10:41 +0100 Subject: [PATCH] If the latest cpp tutorial expects RC 1, all py tutorials fail this fixes the cmake lists. --- tutorials/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index 5c0ed13..9f7e906 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -282,6 +282,12 @@ if(ROOT_python_FOUND) set(pyroot-na49view-depends tutorial-pyroot-geometry) foreach(t ${pytutorials}) + list(FIND returncode_1 ${t} index) + if(index EQUAL -1) + set(rc 0) + else() + set(rc 1) + endif() string(REPLACE ".py" "" tname ${t}) string(REPLACE "/" "-" tname ${tname}) ROOT_ADD_TEST(tutorial-${tname} -- 1.8.2