diff options
author | Denis Brockus <dbrockus@google.com> | 2021-01-06 08:51:07 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-06 19:49:31 +0000 |
commit | 80f66283a25bc9e8bc634ef467f14b773f442cb3 (patch) | |
tree | 7ad4b2c72ff4a446df7e87a3e4f9abbe181f2771 /test/usb_tcpmv2_compliance.c | |
parent | 5db8d820d280e8c2439b891b57f3d4144bd3c65c (diff) | |
download | chrome-ec-80f66283a25bc9e8bc634ef467f14b773f442cb3.tar.gz |
TCPMv2: Compliance Unit Test - Default TRY.SRC to OFF
If a test specifically needs to test TRY.SRC, it should
re-enable this to TRY_SRC_NO_OVERRIDE
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Id71e4e0cf5f96df3e005a58818b218def6ba31c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613248
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'test/usb_tcpmv2_compliance.c')
-rw-r--r-- | test/usb_tcpmv2_compliance.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/usb_tcpmv2_compliance.c b/test/usb_tcpmv2_compliance.c index a6b13597f4..9c97883c45 100644 --- a/test/usb_tcpmv2_compliance.c +++ b/test/usb_tcpmv2_compliance.c @@ -8,6 +8,7 @@ #include "task.h" #include "test_util.h" #include "timer.h" +#include "usb_tc_sm.h" #include "usb_tcpmv2_compliance.h" void before_test(void) @@ -21,6 +22,12 @@ void before_test(void) /* Restart the PD task and let it settle */ task_set_event(TASK_ID_PD_C0, TASK_EVENT_RESET_DONE); task_wait_event(SECOND); + + /* + * Default to not allowing DUT to TRY.SRC and set it to be allowed + * specifically in the TRY.SRC tests + */ + tc_try_src_override(TRY_SRC_OVERRIDE_OFF); } void run_test(int argc, char **argv) |