[PATCH] use the right baseurl in run_install_test.sh.

Chris Lumens clumens at redhat.com
Wed Jul 15 17:21:44 UTC 2015


We're now testing on a secondary architecture, and those don't use the same
baseurl as primary ones.  Thus, a need to differentiate.
---
 tests/install/run_install_test.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/tests/install/run_install_test.sh b/tests/install/run_install_test.sh
index 782ade6..ed9f286 100755
--- a/tests/install/run_install_test.sh
+++ b/tests/install/run_install_test.sh
@@ -49,11 +49,22 @@ enabled=1
 [anaconda-rawhide]
 name=Fedora - Rawhide - Developmental packages for the next Fedora release
 failovermethod=priority
-baseurl=http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/\$basearch/os/
 enabled=1
 gpgcheck=0
 EOF
 
+# Primary and secondary arches do not use the same baseurl, so we have to figure it
+# out here.
+if [[ "$(uname -m)" == "x86_64" ]]; then
+    cat <<EOF >> ${tmpdir}/yum.conf
+baseurl=http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/\$basearch/os/
+EOF
+else
+    cat <<EOF >> ${tmpdir}/yum.conf
+baseurl=http://mirrors.kernel.org/fedora-secondary/development/rawhide/\$basearch/os/
+EOF
+fi
+
 dnf install -y -c ${tmpdir}/yum.conf --installroot=${tmpdir} --releasever=rawhide \
             --disablerepo=\* --enablerepo=anaconda --enablerepo=anaconda-rawhide \
             anaconda
-- 
2.4.3



More information about the anaconda-patches mailing list