Update HA tests to work on systemd systems
Change-Id: I481c05582d61f4d0b9509e9b69395d9c2b5e09d6
diff --git a/TestON/tests/HA/HAkillNodes/HAkillNodes.py b/TestON/tests/HA/HAkillNodes/HAkillNodes.py
index eb9ad75..2855e1a 100644
--- a/TestON/tests/HA/HAkillNodes/HAkillNodes.py
+++ b/TestON/tests/HA/HAkillNodes/HAkillNodes.py
@@ -180,6 +180,8 @@
handle = main.ONOSbench.handle
handle.sendline( "sed -i -e 's/^respawn$/#respawn/g' tools/package/init/onos.conf" )
handle.expect( "\$" ) # $ from the command
+ handle.sendline( "sed -i -e 's/^Restart=always/Restart=no/g' tools/package/init/onos.service" )
+ handle.expect( "\$" ) # $ from the command
handle.expect( "\$" ) # $ from the prompt
# GRAPHS
@@ -292,6 +294,7 @@
main.step( "Clean up ONOS service changes" )
handle.sendline( "git checkout -- tools/package/init/onos.conf" )
+ handle.sendline( "git checkout -- tools/package/init/onos.service" )
handle.expect( "\$" )
main.step( "Checking ONOS nodes" )