[ONOS-7475] Refactoring SR tests
Change-Id: I10e51fcb8b416167e6a338e9030933162640af89
diff --git a/TestON/tests/USECASE/SegmentRouting/SRDhcprelay/dependencies/SRDhcprelayTest.py b/TestON/tests/USECASE/SegmentRouting/SRDhcprelay/dependencies/SRDhcprelayTest.py
index 1ac4f7a..1bbb0f9 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRDhcprelay/dependencies/SRDhcprelayTest.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRDhcprelay/dependencies/SRDhcprelayTest.py
@@ -41,13 +41,11 @@
( description, onosNodes, 's' if onosNodes > 1 else '' ) )
main.cfgName = 'CASE%02d' % testIndex
- main.configPath = main.path + "/dependencies/"
main.resultFileName = 'CASE%02d' % testIndex
main.Cluster.setRunningNode( onosNodes )
run.installOnos( main, skipPackage=skipPackage, cliSleep=5 )
- import json
- with open( "%s/json/%s.host" % ( main.configPath, main.cfgName ) ) as host:
- main.expectedHosts = json.load( host )
+ run.loadJson( main )
+ run.loadHost( main )
if hasattr( main, 'Mininet1' ):
# Run the test with Mininet
if dualHomed: