mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Special case when tests/contest.py
is changed
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
84b5067448
commit
9230430e76
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,9 @@ def define_testrun(ctx: Context, event_name: str, changed_files: pathlib.Path):
|
|||
continue
|
||||
if fpath in ("noxfile.py",):
|
||||
continue
|
||||
if fpath == "tests/conftest.py":
|
||||
# In this particular case, just run the full test suite
|
||||
testrun["type"] = "full"
|
||||
selected_changed_files.append(fpath)
|
||||
testrun_changed_files_path.write_text("\n".join(sorted(selected_changed_files)))
|
||||
ctx.info("Writing 'testrun' to the github outputs file")
|
||||
|
|
Loading…
Add table
Reference in a new issue