• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xapi-project / xen-api / 16870421782
80%

Build:
DEFAULT BRANCH: master
Ran 11 Aug 2025 03:49AM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Aug 2025 12:48PM UTC coverage: 80.368% (+0.02%) from 80.345%
16870421782

push

github

web-flow
python3/usb_scan: Skip empty lines in usb-policy.conf, add more comments (#6616)

Allow empty lines in usb-policy.conf (it's standard practice in similar
configuration files to allow both comments and empty lines, and it can
help readability quite a bit).

Previously, the script would fail in a rather unhelpful manner:

    Traceback (most recent call last):
      File "/opt/xensource/libexec/usb_scan.py", line 681, in <module>
        pusbs = make_pusbs_list(devices, interfaces)
File "/opt/xensource/libexec/usb_scan.py", line 660, in make_pusbs_list
        policy = Policy()
      File "/opt/xensource/libexec/usb_scan.py", line 384, in __init__
        self.parse_line(line)
      File "/opt/xensource/libexec/usb_scan.py", line 444, in parse_line
        if action.lower() == "allow":
UnboundLocalError: local variable 'action' referenced before assignment

See this forum thread for a user figuring this out on their own:
https://xcp-ng.org/forum/topic/11091/usb-passthrough-has-stopped-working-after-update-and-updating-usb-policy.conf/

Add some more comments to usb-policy.conf to help debug cases like the
above.

5 of 5 new or added lines in 2 files covered. (100.0%)

3496 of 4350 relevant lines covered (80.37%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 16870421782.1 11 Aug 2025 03:49AM UTC 34
80.37
GitHub Action Run
Source Files on build 16870421782
  • Tree
  • List 34
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16870421782
  • 1436b8fc on github
  • Prev Build on gh-readonly-queue/master/pr-6617-0ddcfe08ecb9e2d0f3392a9e2e9addb2f2fc921d (#16806992070)
  • Next Build on master (#16873064945)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc