[master 1/1] Fix kickstart test for bond interface creation

jkonecny12 installerbot-noreply at redhat.com
Thu Jul 30 14:11:48 UTC 2015


From: Jiri Konecny <jkonecny at redhat.com>

Change to dhcp from static.
DHCP is need because creation of bond interface disable link interface
which causing lost of connectivity to repository.
Some behavior must changed because it was working before...
---
 tests/kickstart_tests/bond.ks | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/tests/kickstart_tests/bond.ks b/tests/kickstart_tests/bond.ks
index c93c240..5f4f3aa 100644
--- a/tests/kickstart_tests/bond.ks
+++ b/tests/kickstart_tests/bond.ks
@@ -3,7 +3,7 @@ install
 network --device=link --bootproto=dhcp
 
 # Create testing bond interface
-network --device=bond0 --bootproto=static --bondslaves=link --ip=192.168.1.1 --netmask=255.255.252.0 --gateway=192.168.1.2 --nameserver=192.168.1.3 --activate
+network --device=bond0 --bootproto=dhcp --bondslaves=link --activate
 
 bootloader --timeout=1
 zerombr
@@ -44,24 +44,9 @@ if [[ $? -ne 0 ]]; then
    echo '*** ONBOOT is not present' >> /root/RESULT
 fi
 
-grep -q '^IPADDR=192.168.1.1$' $IF_FILE
+grep -q '^BOOTPROTO=dhcp$' $IF_FILE
 if [[ $? -ne 0 ]]; then
-   echo '*** IPADDR is not present' >> /root/RESULT
-fi
-
-grep -q '^PREFIX=22$' $IF_FILE
-if [[ $? -ne 0 ]]; then
-   echo '*** PREFIX is not present' >> /root/RESULT
-fi
-
-grep -q '^GATEWAY=192.168.1.2$' $IF_FILE
-if [[ $? -ne 0 ]]; then
-   echo '*** GATEWAY is not present' >> /root/RESULT
-fi
-
-grep -q '^DNS1=192.168.1.3$' $IF_FILE
-if [[ $? -ne 0 ]]; then
-   echo '*** DNS1 is not present' >> /root/RESULT
+   echo '*** BOOTPROTO is not present' >> /root/RESULT
 fi
 
 # No error was written to /root/RESULT file, everything is OK


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/b88fd0c1f4da80796a625eabd0961943c0dd6db0


More information about the anaconda-patches mailing list