@ 11d698f

250526.2 · 7a096ff54c22019d832ff813f6f7bb3d46d4e243

Support ack3-only

reading declarations

t/ack-1.yaml

@@ -1,5 +1,6 @@ --- name: All the Montresors+ack3-only: true args: Montresor -h t/text stdout: |   the catacombs of the Montresors.@@ -8,29 +9,34 @@ stdout: |  --- name: Stop at one Montresor+ack3-only: true args: Montresor -1 -h t/text stdout: |   the catacombs of the Montresors.  --- name: With dash v+ack3-only: true args: c -1 -h -v t/text/raven.txt stdout: '    Only this and nothing more."'  --- name: Dash f+ack3-only: true args: -1 -f --sort-files t/swamp stdout:   t/swamp/0  --- name: Dash g+ack3-only: true args: -1 -g fresh t/ stdout:   t/swamp/fresh.css  --- name: Dash l+ack3-only: true args: -1 -l --sort-files the t/text stdout: |   t/text/amontillado.txt

t/run_yaml_test.py

@@ -22,12 +22,19 @@ def test_all_yaml_files():     """     filenames = sorted(glob.glob('t/*.yaml'))     for filename in filenames:-        logger.info('YAML: %s' % filename)+        skipped_ack3_only = 0+        logger.info(f'YAML: {filename}')         with open(filename, 'r', encoding='UTF-8') as f:             cases = yaml.load_all(f, yaml.FullLoader)             for case in cases:                 case = massage_case(case)-                run_case(case)+                if case.get('ack3-only', False):+                    skipped_ack3_only += 1+                else:+                    run_case(case)+            if skipped_ack3_only:+                logger.info(f'    Skipped {skipped_ack3_only} ack3-only case(s)')+   def massage_case(case: dict):