[auto-ts] Updated regex in test_auto_techsupport #5924
Merged
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.
Signed-off-by: Andrii-Yosafat Lozovyi andrii-yosafatx.lozovyi@intel.com
Description of PR
Summary:
In PR - 10433 were added changes that add automatic techsupport invocation in case memory usage is too high. After this PR output of Cli cmd's
(show auto-techsupport global, show auto-techsupport-feature, show auto-techsupport history)
changed and TC's are failing to parse the output on SONiC imagesSONiC.master.112803-dirty-20220621.160636
or higher .This PR updates the regex to properly parse the output in both cases (when TC will run on Sonic image that doesn't include changes in 10433 or in case when Sonic image have this changes
SONiC.master.112803-dirty-20220621.160636
or higher)Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Update the regex to properly parse the output of cli cmd's on newer SONiC images
How did you do it?
How did you verify/test it?
Run TC on Sonic image
SONiC.master.112803-dirty-20220621.160636
andSONiC.master.105614-dirty-20220602.215204
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation