Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_liveusb_with_partition_label.case
1 <testcase>
2   <summary>test 'mic cr liveusb ks' for liveusb type, and '--label platform' added for partition in ks</summary>
3   <tracking>
4     <ticket>221</ticket>
5   </tracking>
6   <fixtures>
7     <copy src="ks_files/gnome-live-label.ks" />
8   </fixtures>
9   <conditions>
10    <blacklist>
11     <platform>ubuntu14.10</platform>
12    </blacklist>
13   </conditions>
14   <steps><![CDATA[
15 losetup_path=$(sudo which losetup)
16 sudo $losetup_path -a
17 sudo $losetup_path -a | wc -l | xargs test 0 -eq
18 sudo mic cr -d -v  liveusb gnome-live-label.ks --runtime=native --logfile=log.file
19 grep "Finished" log.file
20 ls mic-output/ | grep 'gnome-live-label-.*.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 -f log.file && sudo rm log.file
27 test -d ./mic-output && sudo rm -rf ./mic-output
28 ]]></teardown>
29 </testcase>