Fix malformed BASH command in ComposeDilemmaFilePath 70/37170/2
authorJozef Behran <jbehran@cisco.com>
Tue, 5 Apr 2016 12:58:54 +0000 (14:58 +0200)
committerVratko Polák <vrpolak@cisco.com>
Thu, 7 Apr 2016 10:22:21 +0000 (10:22 +0000)
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 <jbehran@cisco.com>
csit/libraries/NexusKeywords.robot

index 4479f50b5741dd8dd8fadc2da0172b05ad0aebe0..5a6ed2c43ab0f0f555a7bde96edb4574cc824d8c 100644 (file)
@@ -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}