diff options
author | Thi Tran <thi@us.ibm.com> | 2011-11-11 11:01:41 -0600 |
---|---|---|
committer | Thi N. Tran <thi@us.ibm.com> | 2011-11-11 12:13:28 -0600 |
commit | 1595ed5f5602346579dba1f8714d3092f50e928f (patch) | |
tree | 2d58a72a8936ff6eb87eab8e3418b76a536f9b32 /src/usr/i2c | |
parent | c4c52d57c809bc9b6c8a94a8d9fb66489f246a18 (diff) | |
download | talos-hostboot-1595ed5f5602346579dba1f8714d3092f50e928f.tar.gz talos-hostboot-1595ed5f5602346579dba1f8714d3092f50e928f.zip |
Modifications to run Sprint 6 code on VBU
Change-Id: I28b4c114bdfb00a8f252bc4ce12a725f292c266b
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/495
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-x | src/usr/i2c/test/i2ctest.H | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/usr/i2c/test/i2ctest.H b/src/usr/i2c/test/i2ctest.H index bb4453d68..dca02d4e5 100755 --- a/src/usr/i2c/test/i2ctest.H +++ b/src/usr/i2c/test/i2ctest.H @@ -76,6 +76,21 @@ class I2CTest: public CxxTest::TestSuite { errlHndl_t err = NULL; + //@todo + //@VBU workaround - Disable I2C test case on fake target + //Test case use fake targets, which will fail when running + //on VBU. Need to fix this. + TARGETING::EntityPath syspath(TARGETING::EntityPath::PATH_PHYSICAL); + syspath.addLast(TARGETING::TYPE_SYS,0); + TARGETING::Target* sys = TARGETING::targetService().toTarget(syspath); + uint8_t vpo_mode = 0; + if( sys + && sys->tryGetAttr<TARGETING::ATTR_VPO_MODE>(vpo_mode) + && (vpo_mode == 1) ) + { + return; + } + TS_TRACE( "I2C Test 1: its running!" ); do |