Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry-pick: Add TCP bitflag checks to TC_SC_4_3 test. (#37347) #37477

Open
wants to merge 1 commit into
base: v1.4-branch
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/python_testing/TC_SC_4_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,19 @@ def verify_t_value(self, t_value):
return True, f"T value ({t_value}) is valid and bit 0 is clear."
else:
return False, f"Bit 0 is not clear. T value ({t_value})"

# Check that the value can be either 2, 4 or 6 depending on whether
# DUT is a TCPClient, TCPServer or both.
if self.check_pics("MCORE.SC.TCP"):
if (T_int & 0x04 != 0):
return True, f"T value ({t_value}) represents valid TCP support info."
else:
return False, f"T value ({t_value}) does not have TCP bits set even though the MCORE.SC.TCP PICS indicates it is required."
else:
if (T_int & 0x04 != 0):
return False, f"T value ({t_value}) has the TCP bits set even though the MCORE.SC.TCP PICS is not set."
else:
return True, f"T value ({t_value}) is valid."
except ValueError:
return False, f"T value ({t_value}) is not a valid integer"

Expand Down
Loading