From: Danilo Piparo Date: Mon, 19 Jan 2015 11:10:41 +0000 (+0100) Subject: If the latest cpp tutorial expects RC 1, all py tutorials fail X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=8a64506a8a01a2905d1f8f057633896af445d51f If the latest cpp tutorial expects RC 1, all py tutorials fail this fixes the cmake lists. --- 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}