* The python-is-python2 package will not be installed by mic on ubuntu20.04 now.
Change-Id: Ib92b9383a825080b306c2bd4e90d9f265c6ad437
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
</content>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_fs.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_fs.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
fi
fs_dir=$(ls mic-output/ | grep 'handset_blackbay_fs-.*-rs.tar.gz')
mic_version=$(mic --version 2>&1 | awk -F ' ' '$2 ~ /[0-9]/p{print $2}')
-python parse_manifest.py $fs_dir $mic_version
+python2 parse_manifest.py $fs_dir $mic_version
]]>
</steps>
</content>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_fs_d_v_i.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_fs_d_v_i.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
fi
fs_dir=$(ls mic-output/ | grep 'handset_blackbay_fs_d_v_i-.*-rs.tar.gz')
mic_version=$(mic --version 2>&1 | awk -F ' ' '$2 ~ /[0-9]/p{print $2}')
-python parse_manifest.py $fs_dir $mic_version
+python2 parse_manifest.py $fs_dir $mic_version
]]>
</steps>
</content>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_fs.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_fs.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
fi
fs_dir=$(ls mic-output/ | grep 'handset_blackbay_fs-.*-rs.tar.gz')
mic_version=$(mic --version 2>&1 | awk -F ' ' '$2 ~ /[0-9]/p{print $2}')
-python parse_manifest.py $fs_dir $mic_version
+python2 parse_manifest.py $fs_dir $mic_version
]]>
</steps>
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_package_constPtr.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_package_constPtr.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_partition_expand.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_partition_expand.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</content>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
raw_image=$(ls mic-output/ivi-*-sdb.raw)
sudo mkdir -p mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
+distro=$(python2 -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
echo $distro
if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
modprobe_path=$(sudo which modprobe)
sudo $rmmod_path loop
fi
-platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
-version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform"="openSUSE" ] && [ "$version"=42.3 ]; then
#$raw_image_2=${raw_image##*/}"2"
offset_2=$(sudo fdisk -lu $raw_image | grep $raw_image | sed -n '3p' | awk '{print $2}')
#(! sudo chroot mic-output/ivi_dir/ cat /etc/fstab | grep /dev/sdb)
#sudo chroot mic-output/ivi_dir/ cat /etc/fstab | grep -i 'uuid'
mic_version=$(mic --version 2>&1 | awk -F ' ' '{print $2}')
- python parse_manifest.py $bz2img $mic_version $bmap
+ python2 parse_manifest.py $bz2img $mic_version $bmap
exit 0
else
loop_device=$(sudo $losetup_path -f)
#(! sudo chroot mic-output/ivi_dir/ cat /etc/fstab | grep /dev/sdb)
#sudo chroot mic-output/ivi_dir/ cat /etc/fstab | grep -i 'uuid'
mic_version=$(mic --version 2>&1 | awk -F ' ' '$2 ~ /[0-9]/p{print $2}')
- python parse_manifest.py $bz2img $mic_version $bmap
+ python2 parse_manifest.py $bz2img $mic_version $bmap
exit 0
else
sleep 2
test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
- linux_distro=$(python -c 'import platform; print platform.linux_distribution();')
- platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
- version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+ linux_distro=$(python2 -c 'import platform; print platform.linux_distribution();')
+ platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+ version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]; then
echo 'This is openSUSE42.3 platform.'
else
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_with_installerfw.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_with_installerfw.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
raw_image=$(ls mic-output/ivi_with_installerfw-*-sdb.raw)
sudo mkdir -p mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
+distro=$(python2 -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
echo $distro
if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
modprobe_path=$(sudo which modprobe)
sudo $rmmod_path loop
fi
-platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
-version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]; then
#$raw_image_2=${raw_image##*/}"2"
offset_2=$(sudo fdisk -lu $raw_image | grep $raw_image | sed -n '3p' | awk '{print $2}')
test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
- linux_distro=$(python -c 'import platform; print platform.linux_distribution();')
- platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
- version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+ linux_distro=$(python2 -c 'import platform; print platform.linux_distribution();')
+ platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+ version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]; then
echo 'This is openSUSE42.3 platform.'
else
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py armv7l.ks repo_config.json common-profile
+python2 repo_parse.py armv7l.ks repo_config.json common-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py riscv64.ks repo_config.json riscv64-profile
+python2 repo_parse.py riscv64.ks repo_config.json riscv64-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-with-source-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-with-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py ivi-2.0-alpha-debuginfo.ks repo_config.json ivi-with-debug-profile
+python2 repo_parse.py ivi-2.0-alpha-debuginfo.ks repo_config.json ivi-with-debug-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copydir src="rpm/" />
</fixtures>
<steps><![CDATA[
-python repo_parse.py armv7l.ks repo_config.json common-no-source-profile
+python2 repo_parse.py armv7l.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copydir src="rpm/" />
</fixtures>
<steps><![CDATA[
-python repo_parse.py riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py armv7l_cpio.ks repo_config.json common-no-source-profile
+python2 repo_parse.py armv7l_cpio.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py armv7l.ks repo_config.json common-no-source-profile
+python2 repo_parse.py armv7l.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_runscript.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_runscript.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py qcow_image.ks repo_config.json qcow-profile
+python2 repo_parse.py qcow_image.ks repo_config.json qcow-profile
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py qcow_image.ks repo_config.json qcow-profile
+python2 repo_parse.py qcow_image.ks repo_config.json qcow-profile
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py qcow_image.ks repo_config.json qcow-profile
+python2 repo_parse.py qcow_image.ks repo_config.json qcow-profile
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py qcow_image.ks repo_config.json qcow-profile
+python2 repo_parse.py qcow_image.ks repo_config.json qcow-profile
losetup_path=$(sudo which losetup)
<copydir src="rpm" />
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_gpt_with_part-type.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_gpt_with_part-type.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copydir src="rpm" />
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<steps>
<![CDATA[
#create local repo
-python repo_parse.py scriptlet_error.ks repo_config.json scriptlet-error-profile
+python2 repo_parse.py scriptlet_error.ks repo_config.json scriptlet-error-profile
mkdir -p /home/build/scriptlet/
cp ./scriptlet/* /home/build/scriptlet/
createrepo /home/build/scriptlet
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay_with_encoded_passwd.ks repo_config.json encoded-password-profile
+python2 repo_parse.py handset_blackbay_with_encoded_passwd.ks repo_config.json encoded-password-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_with_separate_passwd.ks repo_config.json separate-password-profile
+python2 repo_parse.py handset_blackbay_with_separate_passwd.ks repo_config.json separate-password-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_with_passwd.ks repo_config.json password-profile
+python2 repo_parse.py handset_blackbay_with_passwd.ks repo_config.json password-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py env_section.ks repo_config.json common-no-source-profile
+python2 repo_parse.py env_section.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py createrepo_issue.ks repo_config.json temp-repo-profile
+python2 repo_parse.py createrepo_issue.ks repo_config.json temp-repo-profile
createrepo --version || True
#export http_proxy="http://10.112.1.184:8080"
#export https_proxy="https://10.112.1.184:8080"
#export ftp_proxy="ftp://10.112.1.184:8080"
#export socks_proxy="socks://10.112.1.184:8080"
export no_proxy="localhost, 127.0.0.1, 10.113.136.113, ftp.kr.debian.org, 109.123.123.185, 10.113.136.26"
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
+distro=$(python2 -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
echo $distro
if [ "$distro" = "opensuse" ]; then
sudo zypper install -y --oldpackage createrepo_c-0.10.4
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay_high_version.ks repo_config.json common-with-high-version-profile
+python2 repo_parse.py handset_blackbay_high_version.ks repo_config.json common-with-high-version-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
- python repo_parse.py obsolete_test_two.ks repo_config.json obsolete-two-profile
- python repo_parse.py obsolete_test_one.ks repo_config.json obsolete-one-profile
+ python2 repo_parse.py obsolete_test_two.ks repo_config.json obsolete-two-profile
+ python2 repo_parse.py obsolete_test_one.ks repo_config.json obsolete-one-profile
sudo mkdir -p /home/build/tmp_repo1
sudo mkdir -p /home/build/tmp_repo2
sudo cp A-2.0-1.x86_64.rpm /home/build/tmp_repo1/
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay_priority.ks repo_config.json common-priority-profile
+python2 repo_parse.py handset_blackbay_priority.ks repo_config.json common-priority-profile
for i in {1,2}
do
mkdir -p /home/build/tmp$i
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
test -e /etc/mic/mic.conf
sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py mobile_exclude.ks repo_config.json common-no-source-profile
+python2 repo_parse.py mobile_exclude.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</content>
</fixtures>
<steps><![CDATA[
-python repo_parse.py whole_rd_210.ks repo_config.json common-no-source-profile
+python2 repo_parse.py whole_rd_210.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
start_install_line=$(grep 'Install' -n log.file | sed -n '2p' | awk -F ':' '{print $1}')
test $start_install_line -gt $end_preinstall_line
mic_version=$(mic --version 2>&1 | awk -F ' ' '$2 ~ /[0-9]/p{print $2}')
-sudo python parse_manifest.py $img_file $mic_version
+python2 parse_manifest.py $img_file $mic_version
sudo $losetup_path -a
loop_used_after=$(sudo $losetup_path -a | wc -l)
if [ "$loop_used_before" -ne "$loop_used_after" ];then
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
sudo cp handset_blackbay.ks /
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py armv7l.ks repo_config.json common-no-source-profile
+python2 repo_parse.py armv7l.ks repo_config.json common-no-source-profile
enforce_path=$(sudo which setenforce || true)
if [ ! -z $enforce_path ];then
sudo $enforce_path 0 || true
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
-python repo_parse.py handset_blackbay_localrepo.ks repo_config.json local-repo-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_localrepo.ks repo_config.json local-repo-profile
mount | grep mic | awk '{print $3}' | sort -r | sudo xargs umount -l || true
sudo umount /home/build/tmp/mic/cache || true
sudo rm -rf /home/build/tmp/mic/cache
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<ticket>512</ticket>
</tracking>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
-python repo_parse.py handset_blackbay_localrepo_test.ks repo_config.json local-repo-base-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_localrepo_test.ks repo_config.json local-repo-base-profile
sudo umount /home/build/tmp/mic/cache || true
sudo rm -rf /home/build/tmp/mic/cache
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_local_tpk_repo.ks repo_config.json common-with-local-tpk-profile
+python2 repo_parse.py handset_blackbay_local_tpk_repo.ks repo_config.json common-with-local-tpk-profile
#sudo mkdir -p /home/build/tmp/mic/tpk
#sudo wget -P /home/build/tmp/mic/tpk http://download.tizen.org/tools/repos/TPK/org.tizen.calendar-1.0.0-x86.tpk
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
test -e /etc/mic/mic.conf
sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
if [ test -d /var/lock ];then
sudo umount /var/lock || true
sudo mv /var/lock /var/lock-bak
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py qcow_image_tpk_http_repo.ks repo_config.json qcow-with-tpk-profile
+python2 repo_parse.py qcow_image_tpk_http_repo.ks repo_config.json qcow-with-tpk-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_broken_content_bootstrap.ks repo_config.json broken-content-bootstrap-profile
+python2 repo_parse.py ivi_broken_content_bootstrap.ks repo_config.json broken-content-bootstrap-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_with_installerfw.ks repo_config.json ivi-profile
-python repo_parse.py ivi_syslinux_problem.ks repo_config.json syslinux_problem_rep-profile
+python2 repo_parse.py ivi_with_installerfw.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_syslinux_problem.ks repo_config.json syslinux_problem_rep-profile
platform=$(uname -m)
-distro=$(python -c "import platform;print platform.linux_distribution()[0].lower().rstrip()")
+distro=$(python2 -c "import platform;print platform.linux_distribution()[0].lower().rstrip()")
if [ "$platform" == "x86_64" ] || [ "$distro" == "centos" ]
then
losetup_path=$(sudo which losetup)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_invalid_content_mic-bootstrap.ks repo_config.json broken-content-bootstrap-profile
+python2 repo_parse.py ivi_invalid_content_mic-bootstrap.ks repo_config.json broken-content-bootstrap-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_624.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_624.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
-distro=`python -c "import platform;a=platform.linux_distribution();print a[0]"`
+distro=`python2 -c "import platform;a=platform.linux_distribution();print a[0]"`
sudo mic -d -v cr raw ivi_624.ks --logfile=./log/handset.log
test -f ./log/handset.log
grep 'Finished' ./log/handset.log
<ticket>1745</ticket>
</tracking>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
raw_image=$(ls mic-output/ivi-*-sdb.raw)
sudo mkdir -p mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
+distro=$(python2 -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
echo $distro
if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
modprobe_path=$(sudo which modprobe)
sudo $rmmod_path loop
fi
-platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
-version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if ([ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]) || ([ "$platform" = "Ubuntu" ] && [ "$version" = "20.04" ]); then
#$raw_image_2=${raw_image##*/}"2"
offset_2=$(sudo fdisk -lu $raw_image | grep $raw_image | sed -n '3p' | awk '{print $2}')
test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
- linux_distro=$(python -c 'import platform; print platform.linux_distribution();')
- platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
- version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+ linux_distro=$(python2 -c 'import platform; print platform.linux_distribution();')
+ platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+ version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]; then
echo 'This is openSUSE42.3 platform.'
elif [ "$platform" = "Ubuntu" ] && [ "$version" = "20.04" ]; then
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_four_partition_gpt.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_four_partition_gpt.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_four_partition_mbr.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_four_partition_mbr.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_no_mountpoint.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_no_mountpoint.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi_no_partition.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi_no_partition.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
test -e /etc/mic/mic.conf
sudo mv /etc/mic/mic.conf /etc/mic/mic.conf.bak
losetup_path=$(sudo which losetup)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py strict_mode.ks repo_config.json strict-mode-profile
+python2 repo_parse.py strict_mode.ks repo_config.json strict-mode-profile
#create local repo
mkdir -p /home/build/strict_mode/
cp ./strict_mode_rpm/* /home/build/strict_mode/
<copy src="py_scripts/test_logging.py" />
</fixtures>
<steps><![CDATA[
-python test_logging.py | grep hello | wc -l | xargs test 1 -eq
-python test_logging.py | grep raw | wc -l | xargs test 1 -eq
-python test_logging.py | grep imager | wc -l | xargs test 1 -eq
+python2 test_logging.py | grep hello | wc -l | xargs test 1 -eq
+python2 test_logging.py | grep raw | wc -l | xargs test 1 -eq
+python2 test_logging.py | grep imager | wc -l | xargs test 1 -eq
]]></steps>
<teardown><![CDATA[
echo "cleaning..."
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_script_error.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_script_error.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py error_no_package.ks repo_config.json common-no-source-profile
+python2 repo_parse.py error_no_package.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay_no_mountpoint.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay_no_mountpoint.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py error_ks_with_chinese.ks repo_config.json common-no-source-profile
+python2 repo_parse.py error_ks_with_chinese.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py error_package.ks repo_config.json common-no-source-profile
+python2 repo_parse.py error_package.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py error_repo.ks repo_config.json error-repo-profile
+python2 repo_parse.py error_repo.ks repo_config.json error-repo-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py error_auto.ks repo_config.json common-no-source-profile
+python2 repo_parse.py error_auto.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py error_no_package.ks repo_config.json common-no-source-profile
+python2 repo_parse.py error_no_package.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py armv7l_with_arch.ks repo_config.json tizen-with-arch-profile
+python2 repo_parse.py armv7l_with_arch.ks repo_config.json tizen-with-arch-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py armv7l.ks repo_config.json common-no-source-profile
+python2 repo_parse.py armv7l.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
</fixtures>
<steps>
<![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
fi
sudo unzip ./mic-output/handset_blackbay_riscv64*.zip -d ./mic-output
test -e ./mic-output/platform.img
-linux_distro=$(python -c 'import platform; print platform.linux_distribution();')
+linux_distro=$(python2 -c 'import platform; print platform.linux_distribution();')
# openSUSE42.x doesn't support mic chroot because old 'file' package can't recognize riscv64 file
if [ !`echo $linux_distro | grep -E "openSUSE.*42.*"` ]; then
sudo mic chroot ./mic-output/platform.img -c ls
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_test_repo.ks repo_config.json common-base-profile
+python2 repo_parse.py handset_blackbay_test_repo.ks repo_config.json common-base-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
+python2 repo_parse.py handset_blackbay_riscv64.ks repo_config.json riscv64-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
+python2 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py qcow_image.ks repo_config.json qcow-profile
+python2 repo_parse.py qcow_image.ks repo_config.json qcow-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
raw_image=$(ls mic-output/ivi-*-sdb.raw)
sudo mkdir -p mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
+distro=$(python2 -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
echo $distro
if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
modprobe_path=$(sudo which modprobe)
sudo $rmmod_path loop
fi
-platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
-version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if ([ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]) || ([ "$platform" = "Ubuntu" ] && [ "$version" = "20.04" ]); then
#$raw_image_2=${raw_image##*/}"2"
offset_2=$(sudo fdisk -lu $raw_image | grep $raw_image | sed -n '3p' | awk '{print $2}')
test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
- linux_distro=$(python -c 'import platform; print platform.linux_distribution();')
- platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
- version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+ linux_distro=$(python2 -c 'import platform; print platform.linux_distribution();')
+ platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+ version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]; then
echo 'This is openSUSE42.3 platform.'
elif [ "$platform" = "Ubuntu" ] && [ "$version" = "20.04" ]; then
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)
raw_image=$(ls mic-output/ivi-*-sdb.raw)
sudo mkdir -p mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
-distro=$(python -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
+distro=$(python2 -c 'import platform;print platform.linux_distribution()[0].lower().rstrip()')
echo $distro
if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
modprobe_path=$(sudo which modprobe)
sudo $rmmod_path loop
fi
-platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
-version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if ([ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]) || ([ "$platform" = "Ubuntu" ] && [ "$version" = "20.04" ]); then
#$raw_image_2=${raw_image##*/}"2"
offset_2=$(sudo fdisk -lu $raw_image | grep $raw_image | sed -n '3p' | awk '{print $2}')
test -d mic-output/ivi_dir && sudo umount -l mic-output/ivi_dir
test -d mic-output/ivi_dir/boot && sudo umount -l mic-output/ivi_dir/boot
kpartx_path=$(sudo which kpartx)
- linux_distro=$(python -c 'import platform; print platform.linux_distribution();')
- platform=$(python -c 'import platform;print platform.linux_distribution()[0].rstrip()')
- version=$(python -c 'import platform;print platform.linux_distribution()[1].rstrip()')
+ linux_distro=$(python2 -c 'import platform; print platform.linux_distribution();')
+ platform=$(python2 -c 'import platform;print platform.linux_distribution()[0].rstrip()')
+ version=$(python2 -c 'import platform;print platform.linux_distribution()[1].rstrip()')
if [ "$platform" = "openSUSE" ] && [ "$version" = "42.3" ]; then
echo 'This is openSUSE42.3 platform.'
elif [ "$platform" = "Ubuntu" ] && [ "$version" = "20.04" ]; then
<copy src="py_scripts/repo_parse.py"/>
</fixtures>
<steps><![CDATA[
-python repo_parse.py ivi.ks repo_config.json ivi-profile
+python2 repo_parse.py ivi.ks repo_config.json ivi-profile
losetup_path=$(sudo which losetup)
sudo $losetup_path -a
loop_used_before=$(sudo $losetup_path -a | wc -l)