Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_liveusb_without_conf_bootstrap_ia32.case
1 <testcase>
2   <summary>Without /etc/mic/mic.conf, liveusb image cannot be created in bootstrap mode</summary>
3   <fixtures>
4     <copy src="ks_files/gnome-live.ks" />
5   </fixtures>
6   <conditions>
7    <blacklist>
8     <platform>ubuntu14.10</platform>
9    </blacklist>
10   </conditions>
11   <steps><![CDATA[
12 test -e /etc/mic/mic.conf
13 sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
14 losetup_path=$(sudo which losetup)
15 sudo $losetup_path -a
16 sudo $losetup_path -a | wc -l | xargs test 0 -eq
17 ! (sudo mic cr -d -v  liveusb gnome-live.ks --logfile=gnome.log --runtime=bootstrap) 2>&1 | tee mic.log
18 grep -i "Failed to download/install bootstrap package" mic.log
19 sudo $losetup_path -a
20 sudo $losetup_path -a | wc -l | xargs test 0 -eq
21 ]]></steps>
22   <teardown><![CDATA[
23 echo "cleaning..."
24 test -e ./mic-output && sudo rm -rf ./mic-output
25 test -e gnome.log && sudo rm gnome.log
26 test -e mic.log && sudo rm mic.log
27 test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
28 ]]></teardown>
29 </testcase>