X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FDUTSetup.py;h=5b70bd6b5a669534d05dd3cbd4fea62d5661d630;hp=2939d74c1eb36166ac95ee2050e856ce6e815433;hb=3818230e5c3fc1308d31ccf33c98b554a3a39b0a;hpb=a1826160461e864060705202646cfc50f2e24015 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*"