From cfa3d0906b167b60d2be40524f07e077e69192f7 Mon Sep 17 00:00:00 2001 From: Tomas Cere Date: Thu, 23 Sep 2021 13:30:48 +0200 Subject: [PATCH] Fix no return value when deploying testtools If the first attempt succeeds we need to return the filename like before. Signed-off-by: Tomas Cere Change-Id: I133e5d8039bab7cbd1fa2350e8b9816b9331b956 --- 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 1af05dc112..577a072b91 100644 --- a/csit/libraries/NexusKeywords.robot +++ b/csit/libraries/NexusKeywords.robot @@ -139,7 +139,7 @@ Deploy_Artifact ${url} = BuiltIn.Set_Variable ${url}/${filename} ${response} ${result} = SSHLibrary.Execute_Command wget -q -N '${url}' 2>&1 return_rc=True BuiltIn.Log ${response} - BuiltIn.Return_From_Keyword_If ${result} == 0 + BuiltIn.Return_From_Keyword_If ${result} == 0 ${filename} # staged autorelease for non-mri project might not contain the artifact we need so we need to fallback to grabbing it from the release repo ${release_url} = String.Replace_String_Using_Regexp ${url} autorelease-[0-9]{4} opendaylight.release ${response} ${result} = SSHLibrary.Execute_Command wget -q -N '${release_url}' 2>&1 return_rc=True -- 2.36.6