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>
5 <copy src="ks_files/handset_blackbay.ks" />
8 losetup_path=$(sudo which losetup)
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 \
15 grep "Finished" log.file
16 sudo test -f /root/my_mic_out/platform.img
18 sudo $losetup_path -a | wc -l | xargs test 0 -eq
22 sudo rm -rf /root/my_mic_out log.file
23 echo "finish cleaning..."