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

nmstate / nmstate / 5224
0%
master: %

Build:
Build:
LAST BUILD BRANCH: github_actions
DEFAULT BRANCH: master
Ran 19 Mar 2020 11:30AM UTC
Jobs 7
Files 0
Run time –
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

pending completion
5224

push

travis-ci-com

cathay4t
nm sriov: Properly return when device not exists

When interface does not exists, the `nm.sriov._has_sriov_capability()`
will raise:

```python
    def _has_sriov_capability(ifname):
        dev = device.get_device_by_name(ifname)
>       if nmclient.NM.DeviceCapabilities.SRIOV & dev.props.capabilities:
E       AttributeError: 'NoneType' object has no attribute 'props'
```

Fixed by add additional check on whether device is None.

Also fixed the integration test which incorrectly using eth0 which is
not test NIC, changed to eth1.

Signed-off-by: Gris Ge <fge@redhat.com>
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Jobs
ID Job ID Ran Files Coverage
2 5224.2 (use_coveralls=true CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev:nmstate-0.2 testflags="--test-type integ_slow --pytest-args='-x'") 19 Mar 2020 11:32AM UTC 0
Travis Job 5224.2
3 5224.3 (use_coveralls=true CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev:nmstate-0.2 testflags="--test-type format") 19 Mar 2020 11:30AM UTC 0
Travis Job 5224.3
4 5224.4 (use_coveralls=true CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev:nmstate-0.2 testflags="--test-type lint") 19 Mar 2020 11:32AM UTC 0
Travis Job 5224.4
5 5224.5 (use_coveralls=true CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev:nmstate-0.2 testflags="--test-type unit_py36") 19 Mar 2020 11:32AM UTC 0
Travis Job 5224.5
6 5224.6 (use_coveralls=true CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev:nmstate-0.2 testflags="--test-type integ --pytest-args='-x' --copr networkmanager/NetworkManager-1.22-git") 19 Mar 2020 11:41AM UTC 0
Travis Job 5224.6
7 5224.7 (use_coveralls=true CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev:nmstate-0.2 testflags="--test-type integ --pytest-args='-x' --copr networkmanager/NetworkManager-master") 19 Mar 2020 11:42AM UTC 0
Travis Job 5224.7
8 5224.8 (use_coveralls=true testflags="--test-vdsm") 19 Mar 2020 11:46AM UTC 0
Travis Job 5224.8
Source Files on build 5224
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #5224
  • a9c4e925 on github
  • Prev Build on nmstate-0.2 (#5199)
  • Next Build on nmstate-0.2 (#5247)
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