actions: twister: run tests on all platforms when changed
When tests are changes, run them on all supported platformed, not only integration platforms. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f856f69202
commit
053cc9fe62
1 changed files with 4 additions and 4 deletions
|
|
@ -100,10 +100,10 @@ class Filters:
|
|||
self.find_archs()
|
||||
self.find_boards()
|
||||
|
||||
def get_plan(self, options):
|
||||
def get_plan(self, options, integration=False):
|
||||
fname = "_test_plan_partial.csv"
|
||||
cmd = ["scripts/twister", "-c"] + options + ["--save-tests", fname ]
|
||||
if self.pull_request:
|
||||
if integration:
|
||||
cmd.append("--integration")
|
||||
|
||||
p = subprocess.call(cmd)
|
||||
|
|
@ -139,7 +139,7 @@ class Filters:
|
|||
|
||||
if _options:
|
||||
logging.info(f'Potential architecture filters...')
|
||||
self.get_plan(_options)
|
||||
self.get_plan(_options, True)
|
||||
|
||||
def find_boards(self):
|
||||
boards = set()
|
||||
|
|
@ -257,7 +257,7 @@ class Filters:
|
|||
_options.extend(["-p", platform])
|
||||
|
||||
_options.extend(self.tag_options)
|
||||
self.get_plan(_options)
|
||||
self.get_plan(_options, True)
|
||||
else:
|
||||
logging.info(f'No twister needed or partial twister run only...')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue