HDDS-7164. Skip installing awscli if already present (#3712)
diff --git a/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot b/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot
index 0b03f3c..74a3c95 100644
--- a/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot
@@ -42,6 +42,8 @@
[return] ${output}
Install aws cli
+ ${rc} ${output} = Run And Return Rc And Output which aws
+ Return From Keyword If '${rc}' == '0'
${rc} ${output} = Run And Return Rc And Output which apt-get
Run Keyword if '${rc}' == '0' Install aws cli s3 debian
${rc} ${output} = Run And Return Rc And Output yum --help