From 50f84d4195dc11c88021f0a7326e4e72fe7e41ce Mon Sep 17 00:00:00 2001
From: Mathieu Courtois <mathieu.courtois@edf.fr>
Date: Mon, 19 Nov 2018 14:53:00 +0100
Subject: [PATCH] [#28196] Fix 'command_tests' in asterxx branch.

--HG--
branch : edf/mc
---
 lib/hgaster/ascommands.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/hgaster/ascommands.py b/lib/hgaster/ascommands.py
index 86eebc18..f4da15b0 100644
--- a/lib/hgaster/ascommands.py
+++ b/lib/hgaster/ascommands.py
@@ -1036,8 +1036,6 @@ class SubmitAsterXX(SubmitAster):
         """Initialization"""
         super(SubmitAsterXX, self).__init__(ui, repo, *args, **opts)
         self.refbranch = "asterxx"
-        if self.reponame != "src":
-            return
 
         resudir = tempfile.mkdtemp(prefix='resutest_')
         self.command_tests = [
@@ -1075,6 +1073,9 @@ class SubmitAsterXX(SubmitAster):
     @log_as_important
     def check_testcase_run(self):
         """running testcases"""
+        if self.reponame != "src":
+            return logger.errcode
+
         return AbstractSubmit.check_testcase_run(self)
 
     @stop_on_failure
-- 
GitLab