summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-xsrc/usr/i2c/test/i2ctest.H15
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
OpenPOWER on IntegriCloud