aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2018-03-20 16:25:31 +0100
committerJan Gelety <jgelety@cisco.com>2018-03-22 10:03:21 +0000
commit3818230e5c3fc1308d31ccf33c98b554a3a39b0a (patch)
tree5453f3cdab9914c8f71906c06a84a6f1c97948d6 /resources
parenta1826160461e864060705202646cfc50f2e24015 (diff)
FIX: check OS on DUT instead on host
CSIT-1010 Change-Id: I21303c22a50c0fe7914f769aca61ef350287ccb5 Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/DUTSetup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py
index 2939d74c1e..5b70bd6b5a 100644
--- a/resources/libraries/python/DUTSetup.py
+++ b/resources/libraries/python/DUTSetup.py
@@ -474,7 +474,9 @@ class DUTSetup(object):
ssh = SSH()
ssh.connect(node)
- if os.path.isfile("/etc/redhat-release"):
+ cmd = "[[ -f /etc/redhat-release ]]"
+ return_code, _, _ = ssh.exec_command(cmd)
+ if int(return_code) == 0:
# workaroud - uninstall existing vpp installation until
# start-testcase script is updated on all virl servers
rpm_pkgs_remove = "vpp*"