Skip to content

wifi_nmcli_test.py: not enough values to unpack (expected 2, got 1) #1737

@nancyc12

Description

@nancyc12

Bug Description

In the lab, when running the com.canonical.certification::wireless/wireless_connection_open_bg_nm_wlan0 test on a device that fails to connect to an SSID, the function wait for connected fails with an error stating not enough values to unpack (expected 2, got 1) (see Jenkins job)

Cert-blocker Test Case

  • cert-blocker

To Reproduce

  1. Run the test with an SSID that doesn't exist.

Expected Result

The test fails with the expected error message when the SSID is disconnected

Actual Result

The test fails with a not enough values to unpack (expected 2, got 1) exception.

Environment

  • Checkbox Type: Snap
  • Chekbox Version: checkbox20 4.4.0-dev6

Relevant log output

===========================================
Attempt 1/5 (function 'wait_for_connected')
===========================================
+ nmcli -m tabular -t -f GENERAL.STATE,GENERAL.CONNECTION d show wlan0
30 (disconnected)


Attempt 1 failed:
not enough values to unpack (expected 2, got 1)

Waiting 1.20 seconds before retrying...

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions