Don't check the files by using mic chroot method
[tools/itest-cases-mic.git] / cases / create / mixed_cases / mic_cr_raw_proxy_in_ks_native.case
1 <testcase>
2   <version>1.0</version>
3   <summary>This case is used to test if mic can create image successfully  with no proxy set in current shell, howerver it is set in ks file with '--proxy' for repo.</summary>
4   <fixtures>
5     <copy src="ks_files/ivi-mbr-i586-with-proxy.ks" />
6   </fixtures>
7   <tracking>
8     <ticket>66</ticket>
9   </tracking>
10   <steps><![CDATA[
11 unset http_proxy || true
12 unset https_proxy || true
13 unset no_proxy || true
14 losetup_path=$(sudo which losetup)
15 sudo $losetup_path -a
16 sudo $losetup_path -a | wc -l | xargs test 0 -eq
17 sudo mic cr raw ivi-mbr-i586-with-proxy.ks --logfile=log.file --runtime=native -d -v
18 grep "Finished" log.file
19 ls mic-output/ | grep 'ivi-mbr-i586-with-proxy-.*-sdb.raw'
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 -f log.file && sudo rm log.file
26 test -d mic-output && sudo rm -rf ./mic-output
27 ]]></teardown>
28 </testcase>