From 4aba0dab12470eb97c503a32b1472e8dd491f143 Mon Sep 17 00:00:00 2001 From: Mathieu Courtois <mathieu.courtois@edf.fr> Date: Fri, 16 Nov 2018 14:11:54 +0100 Subject: [PATCH] [#28196] Support testcase files in data during submit command. --HG-- branch : edf/mc --- lib/hgaster/ascommands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hgaster/ascommands.py b/lib/hgaster/ascommands.py index 01833b66..07f2bb9b 100644 --- a/lib/hgaster/ascommands.py +++ b/lib/hgaster/ascommands.py @@ -970,7 +970,10 @@ class SubmitAster(CandidateRevisionCheckAster, AbstractSubmit): } if self._resutest: params['resu_test'] = self._resutest - testdir = osp.join(self.repo.root, 'astest') + if self.reponame != 'data': + testdir = osp.join(self.repo.root, 'astest') + else: + testdir = osp.join(self._srcdir, 'astest') flist = build_testcase_list(self._changes, testdir, repo=self.reponame) exclude_test(flist, 'list.exclude.submit') exclude_test(flist, 'list.exclude') -- GitLab