[action] [PR:16897] [test_pfcwd_timer_accuracy]: fix pfc timer accuracy timestamp regex#16932
Merged
mssonicbld merged 1 commit intosonic-net:202411from Feb 12, 2025
Merged
Conversation
…onic-net#16897) What is the motivation for this PR? Need handle regex1 too How did you do it? Follow previous PR, modify the regex1 How did you verify/test it? >>> regex = re.compile(r'\b[A-Za-z]{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2}\.\d{6}\b') >>> syslog_msg_1 = "May 29 02:47:40.345257 str3-dut INFO" >>> syslog_msg_2 = "May 9 02:47:40.345257 str3-dut INFO" >>> syslog_msg_3 = "May 9 02:47:40.345257 str3-dut INFO" >>> syslog_msg_4 = "2024 May 29 02:47:40.345257 str3-dut INFO" >>> syslog_msg_5 = "2024 May 9 02:47:40.345257 str3-dut INFO" >>> syslog_msg_6 = "2024 May 9 02:47:40.345257 str3-dut INFO" >>> search_string = regex.search(syslog_msg_1) >>> search_string <re.Match object; span=(0, 22), match='May 29 02:47:40.345257'> >>> search_string.group() 'May 29 02:47:40.345257' >>> search_string = regex.search(syslog_msg_2) >>> search_string <re.Match object; span=(0, 21), match='May 9 02:47:40.345257'> >>> search_string.group() 'May 9 02:47:40.345257' >>> search_string = regex.search(syslog_msg_3) >>> search_string <re.Match object; span=(0, 22), match='May 9 02:47:40.345257'> >>> search_string.group() 'May 9 02:47:40.345257' >>> search_string = regex.search(syslog_msg_4) >>> search_string <re.Match object; span=(5, 27), match='May 29 02:47:40.345257'> >>> search_string.group() 'May 29 02:47:40.345257' >>> search_string = regex.search(syslog_msg_5) >>> search_string <re.Match object; span=(5, 26), match='May 9 02:47:40.345257'> >>> search_string.group() 'May 9 02:47:40.345257' >>> search_string = regex.search(syslog_msg_6) >>> search_string <re.Match object; span=(5, 27), match='May 9 02:47:40.345257'> >>> search_string.group() 'May 9 02:47:40.345257' >>> admin@bjw-can-7060-1:~$ admin@bjw-can-7060-1:~$ date -d 'May 29 02:47:40.345257' +%s%3N 1748486860345 admin@bjw-can-7060-1:~$ date -d 'May 9 02:47:40.345257' +%s%3N 1746758860345 admin@bjw-can-7060-1:~$ date -d 'May 9 02:47:40.345257' +%s%3N 1746758860345 admin@bjw-can-7060-1:~$ date -d 'May 29 02:47:40.345257' +%s%3N 1748486860345 admin@bjw-can-7060-1:~$ date -d 'May 9 02:47:40.345257' +%s%3N 1746758860345 admin@bjw-can-7060-1:~$ date -d 'May 9 02:47:40.345257' +%s%3N 1746758860345 admin@bjw-can-7060-1:~$
11 tasks
Collaborator
Author
|
/azp run |
Collaborator
Author
|
Original PR: #16897 |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
same with #16757
31202914
Type of change
Back port request
Approach
What is the motivation for this PR?
Need handle regex1 too
How did you do it?
Follow previous PR, modify the regex1
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation