]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Remove Citrix.repo
authorJohn Dilley <john.dilley@citrix.com>
Fri, 9 Oct 2015 10:40:02 +0000 (11:40 +0100)
committerJohn Dilley <john.dilley@citrix.com>
Fri, 9 Oct 2015 10:40:02 +0000 (11:40 +0100)
exec/testcases/maintenance.py

index 5ea73fa3756695630a0a4c7518c6a0aa7834b9d1..fdde87f99da324d5ed6376ef63b0fb99b19ae88d 100755 (executable)
@@ -438,7 +438,11 @@ class BiosSetup(xenrt.TestCase):
 
         if "Dell" in h.execdom0("dmidecode -t 1"):
             if h.execdom0("test -e /opt/dell/toolkit/bin/syscfg", retval="code"):
-                h.execdom0("wget -q -O - http://linux.dell.com/repo/hardware/Linux_Repository_15.07.00/bootstrap.cgi | bash")
+                try:
+                    h.execdom0("wget -q -O - http://linux.dell.com/repo/hardware/Linux_Repository_15.07.00/bootstrap.cgi | bash")
+                except:
+                    h.execdom0("rm -f /etc/yum.repos.d/Citrix.repo")
+                    h.execdom0("wget -q -O - http://linux.dell.com/repo/hardware/Linux_Repository_15.07.00/bootstrap.cgi | bash")
                 h.execdom0("yum install -y syscfg")
                 h.reboot()
             syscfg = h.execdom0("/opt/dell/toolkit/bin/syscfg")