Skip to content

Commit

Permalink
RunHostTest: Fix failure of commands by stripping out the command
Browse files Browse the repository at this point in the history
Fixes #237

Reported-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
  • Loading branch information
pridhiviraj committed Jun 5, 2018
1 parent c6898e6 commit 15e7b12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testcases/RunHostTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15e7b12

Please sign in to comment.