From: Jozef Behran Date: Tue, 5 Apr 2016 12:58:54 +0000 (+0200) Subject: Fix malformed BASH command in ComposeDilemmaFilePath X-Git-Tag: release/lithium-sr4~51 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=30e53a34212d77be5e810402477102c99c9e52bc;p=integration%2Ftest.git Fix malformed BASH command in ComposeDilemmaFilePath A misplaced ampersand caused the command to always return 0 (success), even when the path queried did not exists and the command was thus supposed to return nonzero (a failure). Change-Id: If59501fa7d79fc60f0f63fde02095a1c87b19e59 Signed-off-by: Jozef Behran --- diff --git a/csit/libraries/NexusKeywords.robot b/csit/libraries/NexusKeywords.robot index 4479f50b57..5a6ed2c43a 100644 --- a/csit/libraries/NexusKeywords.robot +++ b/csit/libraries/NexusKeywords.robot @@ -110,7 +110,7 @@ Deploy_Test_Tool Compose_Dilemma_Filepath [Arguments] ${default_path} ${specific_path} [Documentation] Query active SSH connection, return specific path if it exists else default path. - ${out} ${rc}= SSHLibrary.Execute_Command ls -lA ${specific_path} &2>1 return_rc=True + ${out} ${rc}= SSHLibrary.Execute_Command ls -lA ${specific_path} 2>&1 return_rc=True BuiltIn.Return_From_Keyword_If ${rc} == 0 ${specific_path} BuiltIn.Return_From_Keyword ${default_path}