Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / opt_cases / mic_cr_loop_outdir-root-dir_native_ia32.case
1 <testcase>
2   <summary>This test case is used to test the option "--outdir",in this case,
3 a subdirectory under /root is given to it, related images should can be found under the given directory.</summary>
4   <fixtures>
5     <copy src="ks_files/handset_blackbay.ks" />
6   </fixtures>
7   <steps><![CDATA[
8 losetup_path=$(sudo which losetup)
9 sudo $losetup_path -a
10 sudo $losetup_path -a | wc -l | xargs test 0 -eq
11 sudo mic cr -d -v  loop handset_blackbay.ks \
12   --outdir=/root/my_mic_out \
13   --runtime=native \
14   --logfile=log.file
15 grep "Finished" log.file
16 sudo test -f /root/my_mic_out/platform.img
17 sudo $losetup_path -a
18 sudo $losetup_path -a | wc -l | xargs test 0 -eq
19 ]]></steps>
20   <teardown><![CDATA[
21 echo "cleaning..."
22 sudo rm -rf /root/my_mic_out log.file
23 echo "finish cleaning..."
24 ]]></teardown>
25 </testcase>