Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_liveusb_without_conf_native_ia32.case
1 <testcase>
2   <summary>Without /etc/mic/mic.conf, liveusb image can be created in native 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=native
18 test -f gnome.log
19 grep 'Finished' gnome.log
20 test -e ./mic-output/gnome-live*.usbimg
21 sudo $losetup_path -a
22 sudo $losetup_path -a | wc -l | xargs test 0 -eq
23 ]]></steps>
24   <teardown><![CDATA[
25 echo "cleaning..."
26 test -e ./mic-output && sudo rm -rf ./mic-output
27 test -e gnome.log && sudo rm gnome.log
28 test -e /etc/mic/mic.conf.bak && sudo mv /etc/mic/mic.conf.bak /etc/mic/mic.conf
29 ]]></teardown>
30 </testcase>