Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_raw_release_record-pkgs_yum.case
1 <testcase>
2   <summary>test 'mic cr liveusb ks --release=xx --record-pkgs=xx' for liveusb type</summary>
3   <tracking>
4     <ticket>2081</ticket>
5   </tracking>
6   <fixtures>
7     <copy src="ks_files/ivi.ks" />
8   </fixtures>
9   <steps><![CDATA[
10 losetup_path=$(sudo which losetup)
11 sudo $losetup_path -a
12 sudo $losetup_path -a | wc -l | xargs test 0 -eq
13 sudo mic cr -d -v  raw ivi.ks  --release=latest --record-pkgs=name --pkgmgr=yum
14 grep "Finished" mic-output/latest/images/ivi/latest_ivi.log
15 test -f mic-output/latest/images/ivi/latest_ivi*.raw
16 test -f mic-output/latest/images/ivi/latest_ivi.log
17 test -f mic-output/latest/images/ivi/latest_ivi.packages
18 sudo $losetup_path -a
19 sudo $losetup_path -a | wc -l | xargs test 0 -eq
20 ]]></steps>
21   <teardown><![CDATA[
22 echo "cleaning..."
23 test -d ./mic-output && sudo rm -rf ./mic-output
24 ]]></teardown>
25 </testcase>