From 15e7b12d5e8223b81f1e2cccdb40f1acfc332c7a Mon Sep 17 00:00:00 2001 From: Pridhiviraj Paidipeddi Date: Tue, 5 Jun 2018 11:55:43 +0530 Subject: [PATCH] RunHostTest: Fix failure of commands by stripping out the command Fixes #237 Reported-by: Satheesh Rajendran Signed-off-by: Pridhiviraj Paidipeddi --- testcases/RunHostTest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/RunHostTest.py b/testcases/RunHostTest.py index b9770aa30..2b6c07b93 100644 --- a/testcases/RunHostTest.py +++ b/testcases/RunHostTest.py @@ -48,6 +48,7 @@ def runTest(self): self.fail("Provide valid host cmd file path") fd = open(self.host_cmd_file, "r") for line in fd.readlines(): + line = line.strip() if "reboot" in line: self.system.goto_state(OpSystemState.OFF) self.system.goto_state(OpSystemState.OS)