Skip to content

[action] [PR:16528] Fix test_sysuptime failure#18461

Merged
bingwang-ms merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/16528
Jun 24, 2025
Merged

[action] [PR:16528] Fix test_sysuptime failure#18461
bingwang-ms merged 1 commit intosonic-net:202411from
mssonicbld:cherry/202411/16528

Conversation

@mssonicbld
Copy link
Collaborator

Fix test_sysuptime fails with error

image

Summary:
Fixes # NA

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Fix broken test

How did you do it?

Fix format parsing before type conversion

How did you verify/test it?

Tested on 7050cx3

Any platform specific information?

None

Supported testbed topology if it's a new test case?

NA

Documentation

* The change strips comma (if present) from py_gnmicli proc/uptime output before
  converting to float

What is the motivation for this PR?
Fix broken test

How did you do it?
Fix format parsing before type conversion

How did you verify/test it?
Tested on 7050cx3
@mssonicbld
Copy link
Collaborator Author

Original PR: #16528

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yaqiangz
Copy link
Contributor

/azpw run Azure.sonic-mgmt

@mssonicbld
Copy link
Collaborator Author

Only PR owner can use /azpw run

@zbud-msft
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 18461 in repo sonic-net/sonic-mgmt

@zbud-msft zbud-msft closed this Jun 24, 2025
@zbud-msft zbud-msft reopened this Jun 24, 2025
@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms bingwang-ms merged commit 859f834 into sonic-net:202411 Jun 24, 2025
17 checks passed
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Jun 30, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   9be4331 (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250624:2357 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * 859f834 (base/202411) mssonicbld 250625:0740 - Fix test_sysuptime failure (sonic-net#16528) (sonic-net#18461)
```

Co-authored-by: mssonicbld <[email protected]>
Co-authored-by: Sai Kiran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants