From 30e53a34212d77be5e810402477102c99c9e52bc Mon Sep 17 00:00:00 2001 From: Jozef Behran Date: Tue, 5 Apr 2016 14:58:54 +0200 Subject: [PATCH] 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 --- csit/libraries/NexusKeywords.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.36.6