in test mode enable packages enabling client compilation
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Nov 2010 14:41:06 +0000 (14:41 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Nov 2010 14:41:06 +0000 (14:41 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 7193f7d..62d6bb0 100644 (file)
@@ -2401,7 +2401,8 @@ Bool_t AliAnalysisAlien::StartAnalysis(Long64_t /*nentries*/, Long64_t /*firstEn
                spkg.ReplaceAll(".par", "");
                gSystem->Exec(TString::Format("rm -rf %s", spkg.Data()));
                if (!gROOT->ProcessLine(Form("gProof->UploadPackage(\"%s\");", package->GetName()))) {
-                  if (gROOT->ProcessLine(Form("gProof->EnablePackage(\"%s\",kTRUE);", package->GetName()))) {
+                  TString enablePackage = (testMode)?Form("gProof->EnablePackage(\"%s\",kFALSE);", package->GetName()):Form("gProof->EnablePackage(\"%s\",kTRUE);", package->GetName());
+                  if (gROOT->ProcessLine(enablePackage)) {
                      Error("StartAnalysis", "There was an error trying to enable package %s", package->GetName());
                      return kFALSE;
                   }