Remove duplicate variables
Fixes the following:
- Update Setting URI
- removing DBUS variables duplicates
Resolves openbmc/openbmc-test-automation#263
Change-Id: If471d681fc89549a66611889874c09eb9bbc0e21
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index fe4e0f4..8cb4d71 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -13,7 +13,7 @@
${dbuscmdBase}
... dbus-send --system --print-reply --dest=${OPENBMC_BASE_DBUS}.settings.Host
${dbuscmdGet}
-... ${OPENBMC_BASE_URI}settings/host0 org.freedesktop.DBus.Properties.Get
+... ${SETTINGS_URI}host0 org.freedesktop.DBus.Properties.Get
# Enable when ready with openbmc/openbmc-test-automation#203
#${dbuscmdString}= string:"xyz.openbmc_project.settings.Host" string:
${dbuscmdString}= string:"org.openbmc.settings.Host" string:
@@ -21,9 +21,6 @@
# Assign default value to QUIET for programs which may not define it.
${QUIET} ${0}
-${dbuscmdBase}= dbus-send --system --print-reply --dest=org.openbmc.settings.Host
-${dbuscmdGet}= /org/openbmc/settings/host0 org.freedesktop.DBus.Properties.Get
-${dbuscmdString}= string:"org.openbmc.settings.Host" string:
${bmc_mem_free_cmd}= free | tr -s ' ' | sed '/^Mem/!d' | cut -d" " -f4
${bmc_mem_total_cmd}= free | tr -s ' ' | sed '/^Mem/!d' | cut -d" " -f2
${bmc_cpu_usage_cmd}= top -n 1 | grep CPU: | cut -c 7-9