123456789101112131415161718192021222324 |
- #!/usr/bin/env python
- import os
- from scripts.check_rosdep import main as check_rosdep
- from .fold_block import Fold
- def test():
- files = os.listdir('rosdep')
- with Fold() as fold:
- print("""Running 'scripts/check_rosdep.py' on all '*.yaml' in the 'rosdep' directory.
- If this fails you can run 'scripts/clean_rosdep_yaml.py' to help cleanup.
- """)
- for f in sorted(files):
- fname = os.path.join('rosdep', f)
- if not f.endswith('.yaml'):
- print("Skipping rosdep check of file %s" % fname)
- continue
- print("Checking rosdep file: %s" % fname)
- assert check_rosdep(fname), fold.get_message()
|