Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_raw_check-bootflag_mbr.case
1 <testcase>
2   <summary></summary>
3   <fixtures>
4     <copy src="ks_files/ivi_with_active_partition.ks" />
5   </fixtures>
6   <steps><![CDATA[
7 losetup_path=$(sudo which losetup)
8 sudo $losetup_path -a
9 sudo $losetup_path -a | wc -l | xargs test 0 -eq
10 sudo mic cr raw ivi_with_active_partition.ks --runtime=native --logfile=handset.log -d -v
11 test -f handset.log
12 grep 'Finished' handset.log
13 test -e ./mic-output/ivi_with_active_partition*.raw
14 grep "Set 'boot' flag" handset.log
15 Parted_path=$(sudo which parted)
16 if man parted | grep "boot"
17 then
18     sudo $Parted_path ./mic-output/ivi_with_active_partition*.raw print | grep "boot"
19 fi
20 sudo $losetup_path -a
21 sudo $losetup_path -a | wc -l | xargs test 0 -eq
22 ]]></steps>
23   <teardown><![CDATA[
24 echo "cleaning..."
25 test -d ./mic-output && sudo rm -rf ./mic-output
26 test -e handset.log && sudo rm handset.log
27 ]]></teardown>
28 </testcase>