Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • forge forge
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • forgeforge
  • Merge requests
  • !327

sum up all occurrences when searching in multiple files

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrei Pavel requested to merge searching-in-files into master Oct 20, 2022
  • Overview 10
  • Commits 1
  • Pipelines 13
  • Changes 37

For example, calling file_contains_line_n_times on 'kea-legal*.txt' now shows the total amount of occurences from all matched files. Previously, it would fail with:

ValueError: invalid literal for int() with base 10: '/usr/local/var/lib/kea/kea-legal.20221018.txt:1\n/usr/local/var/lib/kea/kea-legal.20221019.txt:2'

https://jenkins.aws.isc.org/job/kea-dev/job/tarball-system-tests/700/testReport/junit/tests.dhcp.hooks/test_legal_log/run_tests___ubuntu_20_04_v4___test_v4_legal_log_assigned_address_via_relay_one_address/

Edited Nov 15, 2022 by Andrei Pavel
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: searching-in-files