scripts: ci: test_plan: use find_modules only when commits are provided
Current implementation will not work if comits were not provided. ie. use case with list of changed files will fail as args.commits is None. Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
This commit is contained in:
parent
8d5a7ac141
commit
b8ae3a416b
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class Filters:
|
||||||
os.remove(fname)
|
os.remove(fname)
|
||||||
|
|
||||||
def find_modules(self):
|
def find_modules(self):
|
||||||
if 'west.yml' in self.modified_files:
|
if 'west.yml' in self.modified_files and args.commits is not None:
|
||||||
print(f"Manifest file 'west.yml' changed")
|
print(f"Manifest file 'west.yml' changed")
|
||||||
print("=========")
|
print("=========")
|
||||||
old_manifest_content = repo_to_scan.git.show(f"{args.commits[:-2]}:west.yml")
|
old_manifest_content = repo_to_scan.git.show(f"{args.commits[:-2]}:west.yml")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue