Make command-line tests a bit more resilient
Closed
requested to merge generated-differential-D4626-source into generated-differential-D4626-target
1 unresolved thread
We now match the command line output per section, in a fuzzier way than before.
Test Plan
tox tests updated
Migrated from D4626 (view on Phabricator)
Merge request reports
Activity
Filter activity
Build is green
Patch application report for D4626 (id=16414)
Rebasing onto 6f9779f4...
Current branch diff-target is up to date.
Changes applied before test
commit 4be641cb96af2f29b073f4199c206230709d6beb Author: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Fri Nov 27 15:16:30 2020 +0100 Make command-line tests a bit more resilient We now match the command line output per section, in a fuzzier way than before.
See https://jenkins.softwareheritage.org/job/DCORE/job/tests-on-diff/170/ for more details.
31 in_section = False 32 for line in cli_output.splitlines(): 33 if not line: 34 continue 35 36 if in_section: 37 if not line.startswith(" "): 38 break 39 else: 40 if line.startswith(section): 41 in_section = True 42 43 if in_section: 44 result.append(line) 45 46 return result
Please register or sign in to reply