enhancing kill process on remote host
Change-Id: I5975c3feb24e9672423058cf83e51fbcb4b9b047
diff --git a/src/test/cord-api/Framework/utils/utils.robot b/src/test/cord-api/Framework/utils/utils.robot
index d19b89d..ef25707 100644
--- a/src/test/cord-api/Framework/utils/utils.robot
+++ b/src/test/cord-api/Framework/utils/utils.robot
@@ -162,4 +162,5 @@
Kill Linux Process
[Arguments] ${ip} ${user} ${pass} ${process}
- Run Sudo Command On Remote System ${ip} sudo kill $(ps aux | grep '${process}' | awk '{print $2}') ${user} ${pass}
\ No newline at end of file
+ ${rc}= Run Sudo Command On Remote System ${ip} sudo kill $(ps aux | grep '${process}' | awk '{print $2}'); echo $? ${user} ${pass}
+ Should Contain ${rc} 0
diff --git a/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt b/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt
index ce42e3f..767c6f7 100644
--- a/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt
+++ b/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt
@@ -76,12 +76,12 @@
Set Global Variable ${slist} ${SubscriberList}
Teardown
- [Documentation] Delete and clean up xos objects
- Kill Linux Process [w]pa_supplicant
- Kill Linux Process [d]hclient
+ [Documentation] Delete xos objects and kill process on src host
+ Kill Linux Process ${src_ip} ${src_user} ${src_pass} [w]pa_supplicant
+ Kill Linux Process ${src_ip} ${src_user} ${src_pass} [d]hclient
Clean Up Objects ${VOLT_SUBSCRIBER}
- Clean Up Objects ${VOLT_DEVICE}
- Clean Up Objects ${ATT_WHITELIST}
+ Clean Up Objects ${VOLT_DEVICE}
+ Clean Up Objects ${ATT_WHITELIST}
Validate ONU States
[Arguments] ${expected_op_status} ${expected_admin_status}
@@ -98,4 +98,4 @@
Validate Subscriber Status
[Arguments] ${exepected_status}
${status} Subscriber Status Check ${onu_device}
- Should Be Equal ${status} ${exepected_status}
\ No newline at end of file
+ Should Be Equal ${status} ${exepected_status}