Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_liveusb_prefix-conf_ia32.case
1 <testcase>
2   <summary>Test "name_prefix = prefix" in mic.conf</summary>
3   <fixtures>
4     <copy src="ks_files/gnome-live.ks" />
5     <copy src="conf/mic_prefix.conf" />
6   </fixtures>
7   <conditions>
8    <blacklist>
9     <platform>ubuntu14.10</platform>
10    </blacklist>
11   </conditions>
12   <steps><![CDATA[
13 losetup_path=$(sudo which losetup)
14 sudo $losetup_path -a
15 sudo $losetup_path -a | wc -l | xargs test 0 -eq
16 sudo mic cr -d -v  liveusb gnome-live.ks --runtime=native --logfile=mic.log -c mic_prefix.conf
17 test -f mic.log
18 grep 'Finished' mic.log
19 egrep 'mic [0-9]{1,2}\.[0-9]+' mic.log
20 test -e ./mic-output/prefix-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 -d ./mic-output && sudo rm -rf ./mic-output
27 test -e mic.log && sudo rm mic.log
28 ]]></teardown>
29 </testcase>