Replace python with python2. 58/309658/2
authorwanchao-xu <wanchao.xu@samsung.com>
Mon, 15 Apr 2024 05:13:01 +0000 (13:13 +0800)
committerwanchao-xu <wanchao.xu@samsung.com>
Mon, 15 Apr 2024 08:18:30 +0000 (16:18 +0800)
  * 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>
144 files changed:
cases/create/func_cases/mic_cr_auto_fs.case
cases/create/func_cases/mic_cr_auto_fs_d_v_i.case
cases/create/func_cases/mic_cr_auto_fs_parameter_run_script.case
cases/create/func_cases/mic_cr_auto_loop.case
cases/create/func_cases/mic_cr_auto_loop_cp_tpk_error.case
cases/create/func_cases/mic_cr_auto_loop_multi_mic_run.case
cases/create/func_cases/mic_cr_auto_loop_package_constPtr.case
cases/create/func_cases/mic_cr_auto_loop_partition_expand.case
cases/create/func_cases/mic_cr_auto_loop_rpm_debug.case
cases/create/func_cases/mic_cr_auto_raw.case
cases/create/func_cases/mic_cr_auto_raw_gpt.case
cases/create/func_cases/mic_cr_fs_inc-src_cache-dir_arch_logfile_armv7l.case
cases/create/func_cases/mic_cr_fs_inc-src_cache-dir_arch_logfile_riscv64.case
cases/create/func_cases/mic_cr_fs_inc-src_cp-knl_cache-dir_ia32.case
cases/create/func_cases/mic_cr_fs_install-pkgs_ia32.case
cases/create/func_cases/mic_cr_loop_check-pkgs_tmpfs_ia32.case
cases/create/func_cases/mic_cr_loop_compress_local-pkgs_record-pkgs_pack-to_armv7l.case
cases/create/func_cases/mic_cr_loop_compress_local-pkgs_record-pkgs_pack-to_riscv64.case
cases/create/func_cases/mic_cr_loop_config_cmpress_runtime_ia32.case
cases/create/func_cases/mic_cr_loop_cpio.case
cases/create/func_cases/mic_cr_loop_logfile_conf_shrink_release_pkgmgr_armv7l.case
cases/create/func_cases/mic_cr_loop_logfile_conf_shrink_release_pkgmgr_riscv64.case
cases/create/func_cases/mic_cr_loop_run_script.case
cases/create/func_cases/mic_cr_loop_shrink_outdir_logfile_pkgmgr_ia32.case
cases/create/func_cases/mic_cr_qcow_check-pkgs_tmpfs_ia32.case
cases/create/func_cases/mic_cr_qcow_config_runtime_ia32.case
cases/create/func_cases/mic_cr_qcow_local-pkgs_record-pkgs.case
cases/create/func_cases/mic_cr_qcow_logfile_conf_release_pkgmgr.case
cases/create/func_cases/mic_cr_raw_generate-bmap_cp-knl_compress_runtime_local-pkgs_conf_armv7l.case
cases/create/func_cases/mic_cr_raw_gpt-part-type.case
cases/create/func_cases/mic_cr_raw_release_logfile_local-pkg-pth_record-pkg_gen-bmap_ia32.case
cases/create/func_cases/mic_cr_scriptlet_error.case
cases/create/mixed_cases/check_install_packages_number_display.case
cases/create/mixed_cases/mic_cr_auto_with_encoded_password.case
cases/create/mixed_cases/mic_cr_auto_with_separate_password.case
cases/create/mixed_cases/mic_cr_auto_with_un-encoded_password.case
cases/create/mixed_cases/mic_cr_check_env.case
cases/create/mixed_cases/mic_cr_createrepo_issue.case
cases/create/mixed_cases/mic_cr_fs_bootstrap_check_chroot.case
cases/create/mixed_cases/mic_cr_fs_check_high_version_rpm_installed.case
cases/create/mixed_cases/mic_cr_fs_obsolete_pkg_test.case
cases/create/mixed_cases/mic_cr_fs_priority.case
cases/create/mixed_cases/mic_cr_fs_without_conf_bootstrap_ia32.case
cases/create/mixed_cases/mic_cr_loop_bootstrap_check_chroot.case
cases/create/mixed_cases/mic_cr_loop_check_arch.case
cases/create/mixed_cases/mic_cr_loop_check_user_and_group_info.case
cases/create/mixed_cases/mic_cr_loop_conf_etc_ia32.case
cases/create/mixed_cases/mic_cr_loop_exclude-from-image.case
cases/create/mixed_cases/mic_cr_loop_full_ks.case
cases/create/mixed_cases/mic_cr_loop_ks-under-root-directory_ia32.case
cases/create/mixed_cases/mic_cr_loop_multi_partition.case
cases/create/mixed_cases/mic_cr_loop_no-cache.case
cases/create/mixed_cases/mic_cr_loop_only_local_repo.case
cases/create/mixed_cases/mic_cr_loop_overridden.case
cases/create/mixed_cases/mic_cr_loop_pack-to-tar-gz_multi_times.case
cases/create/mixed_cases/mic_cr_loop_release_ia32_bug.case
cases/create/mixed_cases/mic_cr_loop_repo_local_repo.case
cases/create/mixed_cases/mic_cr_loop_tpk_local_repo.case
cases/create/mixed_cases/mic_cr_loop_without_conf_bootstrap_ia32.case
cases/create/mixed_cases/mic_cr_loop_without_var_lock.case
cases/create/mixed_cases/mic_cr_qcow_tpk_http_repo.case
cases/create/mixed_cases/mic_cr_raw_broken_bootstrap.case
cases/create/mixed_cases/mic_cr_raw_installerfw_extlinux.case
cases/create/mixed_cases/mic_cr_raw_invliad_mic-bootstrap.case
cases/create/mixed_cases/mic_cr_raw_ivi_partition_size_compute_ia32.case
cases/create/mixed_cases/mic_cr_raw_locale.case
cases/create/mixed_cases/mic_cr_raw_multi_partition_gpt.case
cases/create/mixed_cases/mic_cr_raw_multi_partition_mbr.case
cases/create/mixed_cases/mic_cr_raw_no_mountpoint.case
cases/create/mixed_cases/mic_cr_raw_no_partition.case
cases/create/mixed_cases/mic_cr_raw_unicode.case
cases/create/mixed_cases/mic_cr_raw_without_conf_bootstrap_ia32.case
cases/create/mixed_cases/mic_cr_strict_mode_image.case
cases/create/mixed_cases/mic_duplicate_log.case
cases/create/neg_cases/mic_cr_auto_loop_script_error.case
cases/create/neg_cases/mic_cr_failed_release_log.case
cases/create/neg_cases/mic_cr_fs_no_mountpoint.case
cases/create/neg_cases/mic_cr_loop_compress-image_wrong-format.case
cases/create/neg_cases/negative_error-ks-with-chinese.case
cases/create/neg_cases/negative_error-package-ks.case
cases/create/neg_cases/negative_error-repo-ks.case
cases/create/neg_cases/negative_error_proxy_conf.case
cases/create/neg_cases/negative_error_proxy_conf_logfile.case
cases/create/neg_cases/negative_mic_cr_auto_without_autoline.case
cases/create/neg_cases/negative_no-package-ks.case
cases/create/neg_cases/negative_non-existed-package.case
cases/create/opt_cases/mic_cr_fs_include-src_ia32.case
cases/create/opt_cases/mic_cr_fs_record-pkgs-name-content-license-vcs_ia32.case
cases/create/opt_cases/mic_cr_fs_runtime-bootstrap_ia32.case
cases/create/opt_cases/mic_cr_loop_arc-invalid_ia32.case
cases/create/opt_cases/mic_cr_loop_arc_ia32.case
cases/create/opt_cases/mic_cr_loop_arch-vague_ia32.case
cases/create/opt_cases/mic_cr_loop_cache-current-dir_ia32.case
cases/create/opt_cases/mic_cr_loop_cache-root-dir_ia32.case
cases/create/opt_cases/mic_cr_loop_compress-image-bz2_ia32.case
cases/create/opt_cases/mic_cr_loop_compress-image-gz_ia32.case
cases/create/opt_cases/mic_cr_loop_compress-image-invalid_ia32.case
cases/create/opt_cases/mic_cr_loop_conf_ia32.case
cases/create/opt_cases/mic_cr_loop_copy-kernel_ia32.case
cases/create/opt_cases/mic_cr_loop_debug_ia32.case
cases/create/opt_cases/mic_cr_loop_interactive_ia32.case
cases/create/opt_cases/mic_cr_loop_local-pkg-path_ia32.case
cases/create/opt_cases/mic_cr_loop_logfile-current-dir_ia32.case
cases/create/opt_cases/mic_cr_loop_logfile-current-file_ia32.case
cases/create/opt_cases/mic_cr_loop_logfile-root-file_ia32.case
cases/create/opt_cases/mic_cr_loop_outdir-current-dir_ia32.case
cases/create/opt_cases/mic_cr_loop_outdir-root-dir_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-Invalid_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-Invalid_riscv64.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz2_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar-bz_riscv64.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar-gz_riscv64.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-tar_riscv64.case
cases/create/opt_cases/mic_cr_loop_pack-to-taz.case
cases/create/opt_cases/mic_cr_loop_pack-to-tbz2_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-tbz_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-tgz.case
cases/create/opt_cases/mic_cr_loop_pack-to-zip_ia32.case
cases/create/opt_cases/mic_cr_loop_pack-to-zip_riscv64.case
cases/create/opt_cases/mic_cr_loop_pkgmgr-Invalid_ia32.case
cases/create/opt_cases/mic_cr_loop_pkgmgr-zypp_ia32.case
cases/create/opt_cases/mic_cr_loop_record-pkgs-Invalid_ia32.case
cases/create/opt_cases/mic_cr_loop_record-pkgs-name-content-license-vcs_ia32.case
cases/create/opt_cases/mic_cr_loop_release_check_log_completeness.case
cases/create/opt_cases/mic_cr_loop_release_ia32.case
cases/create/opt_cases/mic_cr_loop_release_latest_ia32.case
cases/create/opt_cases/mic_cr_loop_release_latest_riscv64.case
cases/create/opt_cases/mic_cr_loop_release_pack-to.case
cases/create/opt_cases/mic_cr_loop_repo_ia32.case
cases/create/opt_cases/mic_cr_loop_runtime-Invalid_ia32.case
cases/create/opt_cases/mic_cr_loop_runtime-bootstrap_ia32.case
cases/create/opt_cases/mic_cr_loop_runtime-bootstrap_riscv64.case
cases/create/opt_cases/mic_cr_loop_shrink_ia32.case
cases/create/opt_cases/mic_cr_loop_tmpfs.case
cases/create/opt_cases/mic_cr_qcow_logfile-current-file_ia32.case
cases/create/opt_cases/mic_cr_raw_compress-image-bz2_ia32.case
cases/create/opt_cases/mic_cr_raw_compress-image-gz_ia32.case
cases/create/opt_cases/mic_cr_raw_compress-image-invalid_ia32.case
cases/create/opt_cases/mic_cr_raw_fstab-entry-name.case
cases/create/opt_cases/mic_cr_raw_fstab-entry-uuid.case
cases/create/opt_cases/mic_cr_raw_generate-bmap_ia32.case

index 432fdcb51250cc6e3e2371d5b425c8691878254d..529669abace01f46f3894e2e2a6abc3f07f6ab99 100755 (executable)
@@ -22,7 +22,7 @@ assert img_file in manifest['fs']['image_files']
       </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)
@@ -36,7 +36,7 @@ if [ "$loop_used_before" -ne "$loop_used_after" ];then
 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>
index 64c3694371a939584c5ef94fa3251eb763b007f3..f0c007bc4a881e69d1743411d4191963dc847edc 100755 (executable)
@@ -22,7 +22,7 @@ assert img_file in manifest['fs']['image_files']
       </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)
@@ -36,7 +36,7 @@ if [ "$loop_used_before" -ne "$loop_used_after" ];then
 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>
index 2a15a095038dc717d2ca6da97083de702bf22221..34274b6c3de465003744add5522e6aad7854844d 100755 (executable)
@@ -20,7 +20,7 @@ assert img_file in manifest['fs']['image_files']
       </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)
@@ -35,7 +35,7 @@ if [ "$loop_used_before" -ne "$loop_used_after" ];then
 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>
index 26b19eaedaea727e592f553f963dbacd48130c89..0880e729727ba2cd7b85b594a8200bdd926fb916 100755 (executable)
@@ -10,7 +10,7 @@ which called magic line, and magic line in this ks file is:
     <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)
index 3765f44892115fde4d03b6615fd2dd416385cfff..f1b585b3ddcf7d7765ac01326cc09c9b2df89b9f 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 2284a5fec25b993a21bacb2fa11ffb1152ff8bf0..0e8a1fb8a4a484d9595e830ff49881b26a162edc 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 0b2304a3cb878c8055caa3516289c44fa167fe77..1c3c85c326aa4b616c2c9c28602186f2f22431d8 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 698bd01c478bcbfa956ed564cb1f3752679cb2b6..21383bf16c82ea1ef0adecd0b2dae4a744765c50 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 53be8c6a9c23bda31f09f47cd8aaacca612a5731..318b1c1425be577f05017441a6e4876812b21d24 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 238495bdde4ad5c7ed4db83a1fe47c7f582009d3..613c6fc860d2f733913e3833f3f5ff9bec91ebce 100755 (executable)
@@ -26,7 +26,7 @@ assert manifest['raw']['sdb']['image'] == img_file
     </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)
@@ -47,7 +47,7 @@ sudo bunzip2 -d mic-output/$bz2img
 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)
@@ -57,8 +57,8 @@ if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
     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}')
@@ -67,7 +67,7 @@ if [ "$platform"="openSUSE" ] && [ "$version"=42.3 ]; then
     #(! 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)
@@ -88,7 +88,7 @@ else
                         #(! 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
@@ -119,9 +119,9 @@ do
         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
index 364b1c184c73c09e1ec18158c7759f87f6b8df40..376668dee82a75c63130be4efc0e1e8d94f040c0 100755 (executable)
@@ -6,7 +6,7 @@
         <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)
@@ -26,7 +26,7 @@ sudo bunzip2 -d mic-output/$bz2img
 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)
@@ -36,8 +36,8 @@ if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
     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}')
@@ -94,9 +94,9 @@ do
         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
index fa6cd951b714e251ed36ed9f673560c009698a40..4a0dc333d8032444d5ecd93e96d2e111a9093bd0 100755 (executable)
@@ -8,7 +8,7 @@
     </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)
index 43925cedbf2ff8a758b9912a5dbf13aa6585c1c4..cbe855b6776fcc4b6529f873d2206c2b6404d101 100755 (executable)
@@ -8,7 +8,7 @@
     </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)
index 410a99224bbde832140d6a3272569fb78c37d603..97b32aefa3db3550dbd3ff0fade44feacaf0e62d 100755 (executable)
@@ -10,7 +10,7 @@
     </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)
index 297a90a387f0dfd95f6ba1ea7cceb5ba8cb6e8e8..bcb1c2211a34fd14d6385582a58a59ed53bb0f43 100755 (executable)
@@ -7,7 +7,7 @@
   </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)
index dd24d28fd536c6c4fda60ebbfacffd6519220366..c1373b68433ef9df96d0cddac53a8b757f986d57 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 18abd968e2fbe7ce1fadb43613a12bbb7b238019..e1d4000827d39b8bf23ef76ad4e8da6038d6f1c3 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index 48a7609b53ecfd1ca1cb8a42c83eda902e456886..2a5b65d4020703f6960b4688e99070fef29351fb 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index 5028be227cf4e183247400e3064f6b8bb99d3262..8ae1722cbbd4f6fc4c9de97bb3c20e778dced100 100755 (executable)
@@ -10,7 +10,7 @@
     <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)
index 730d5ecf6bbdfc8aae57773e88392ceb0639c3ff..391290b8fb7fb2596fae16e8ed78f31574c3b2d4 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 7a5616e6c581244d8f8d6da0e8241dd6573cc295..242a02c376b5e97aa842d5eeb57941694ea08a3d 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index 9144f3b906978a338d9f316809a97c08c29592ea..5894a3a3b6fe50bdfcc2e186a8f5b1366b0ce9a9 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index 2e281a897c2b28400e65db4f922239813ad9502d..1de4de4d1b83541ca65c589cb677ff814f1a36d6 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 34a028ec0695060d95e70d46a229b984b43652bb..b42183ac97b086c4c586670026580d9be2510ac9 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 424dbe8991955acf4c5da304b01be358d4c00937..6f50273b83329af543e91d4438e56c33593b165c 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
 
index 834e07795678dc3872b130952c083b8a15ca9cf0..0644354c84f5d27672a4b36cfc489b3d4c87a54f 100755 (executable)
@@ -9,7 +9,7 @@
     <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)
 
index f0acec6cfb4c5e9d8f34483257d8dc98aba40d61..a0244efe5fc1522da7d0daa472031ca352dad710 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
 
index 284e2345291e3b55d269452a276ba532e7df558c..1df1b4ce74b835db2b7048f0f37ea9fd34a284cd 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
 
index a179f2338f8d4ebcfe6ab3d04aac21ec3d12278f..2cc32a96379d4bce50f4feea98f64522c8c6d984 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index 119abc236b411a11c3adcaebafc87811c232d3a4..7db263c82ec2f7da66a78567c7a2894f3922ee37 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index ed22f4a952a6b39741490ffa5be9ce87159c8940..6d2d3f0ce36ac5da544b6e8e15e7ab46949c3b00 100755 (executable)
@@ -11,7 +11,7 @@
     <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)
index cf73089f1c3a45add0f6a5c3a678079cb9d9f277..b546351ef8d5a7cb9ace2da8e3afd163f987467c 100755 (executable)
@@ -9,7 +9,7 @@
     <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
index f2e4071b779c3396a0a800a52fc8a70678b5c3bc..2d4ec0412ccbc28c4c7cb6a9a7974caa7fe31e10 100755 (executable)
@@ -12,7 +12,7 @@ installing package, before it shows error log 'install ....[15/14]'
     <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)
index 1d988023b5c995ee353c7cbf17fe58b10cd88591..974c4beebf64a30bdc6caa0a2cd52f789f138add 100755 (executable)
@@ -7,7 +7,7 @@
     </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)
index 46612a815f218a51c38fa533a6a972d84b7a2928..83fa1eee4746bc7b59cb0b4abf955e31ccc03505 100755 (executable)
@@ -6,7 +6,7 @@
         <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)
index c98c02ece0bc2ce6ea42309172ad6a7c18bff0e8..f6dcfbfef77ddaa58621d2dba8120115843ff0a2 100755 (executable)
@@ -6,7 +6,7 @@
         <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)
index cbd209a175651a0abeb39a636a32a2a7e817082a..73c87bd693c784727cc93f79a8e3428ab45626e3 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 6c68815bd211f199b0a337efc07c23eab7142926..f5d0b22ad653b5ec8e6abe516accbd50b45cc686 100755 (executable)
     <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
index ac2871a90abb207dfdcdb53d819cb1628b7eab09..5ee8e895d8d3bb05519590fdb00305b4f6ea1ae7 100755 (executable)
@@ -7,7 +7,7 @@
     </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)
index 7157f3187813d6bf3f084e0463488c839492d72a..c7142a2fc3f5939ef75efb754b68272f9e97d52e 100755 (executable)
@@ -7,7 +7,7 @@
     </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)
index edf9f1144cb33352c300af7bb454354e3b187698..eae64a1f12a2fb5f65984bf347d0de27e754640a 100755 (executable)
@@ -15,8 +15,8 @@
     <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/
index fe90eeb940e8eb3ca33368c3d6eceba6bc0cbdca..8ccaa8c22bd707683f045d9e96e88450da530153 100755 (executable)
@@ -8,7 +8,7 @@
     </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
index 18040a1fe3988c022034a6b4676c257a01f15994..8e07734c15c851fbb8c31c1cebf4ac57d9afbf1f 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index a20d60da23e1a6922a5e544da82173567a2a68b4..0d7abb842016edfa643e61ef9451a66aa81c5b2d 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 35828f32e66ea26aa38f908058515e5ce306003c..49723d7c21737d4608e87b155fec2daf1798e2aa 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 91552e39dac97db97f82d4fabf8564c68b3707a2..1a1ee724ff0cad8371caae470c3c1fc8ec5bff9d 100755 (executable)
@@ -7,7 +7,7 @@ for output and cache directory, it's should be the current user</summary>
     <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)
index d0b8a20b331c9c575f518cfec9cd147f58d5a02f..5d819c2ff703590d042e38e0c84b26b2775696a2 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 1756877e6a0734be542a445f381961025de045c0..aa4c6a7110d3b538053250ff9b78ae07f4ee9536 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index ac7094140773950539dc2bb11879cc844ae15937..93c8dbe2f2948c4c7636bdadc8903c9a3f21a010 100755 (executable)
@@ -21,7 +21,7 @@ assert manifest['loop']['partitions']['/opt/usr'] == 'ums'
       </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)
@@ -42,7 +42,7 @@ end_preinstall_line=$(grep 'Preinstall' -n log.file | sed -n '$p' | awk -F ':' '
 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
index 369177dbb6e77e61208f16f54124428f5a6c7f4f..54d611e234218da5f47f60559d4f6096ee3712d6 100755 (executable)
@@ -9,7 +9,7 @@
     <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
index 6f506cc1ba92723af75864ce42baad8fa4244f25..302246bc664af757d80ad873bf1d86dcf49a3fc3 100755 (executable)
@@ -6,7 +6,7 @@
     <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
index 2e853c1e5d3556067dadc5945fe2e4896a0818e0..c8490c8d212ca291757aa5eb64bd8a122e64f411 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 5345265521af4c8754a3b1a9d082d6f77af5b174..2f05102d7737a8a69529c27f2395a3926f572fa8 100755 (executable)
@@ -10,8 +10,8 @@
     <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
index fbc8519e60cdd028c885a601a16bb1ff5d08ea08..a18222b556c013d251e9eaa43ee41709239ffc6f 100755 (executable)
@@ -10,7 +10,7 @@
     <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)
index 1940f2dd7063f7b2c7952085f66224accdd6c279..be67ac727f980080dd96f3f650e6477a4401edac 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index ab0c7c23c0a22a8a2a85a2a58e5319d53df74a26..81666b91085aa70dc1f6a12f2b4adce0b5afe6a4 100755 (executable)
@@ -9,7 +9,7 @@
     <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)
index 49a61fc80859690830fd15e66fc62aae4d18b50a..3861b654ded9062c12e65d69b555680093967c44 100755 (executable)
@@ -11,8 +11,8 @@
     <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)
index 3fcd9cd3a5c27e21c09df46a848adf094a79bea6..dfd741c98e69fed324cb9257f24b9056148056b5 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 27e8200dbf692ddd37a1bdfe74016424e4aa225c..3ce600aac4ab277eba829eea2fe63119cc7648bb 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index c465ad1f1e721a221e2e7dfa2832c54d82b81c20..325c231c0b4e4f8cc53e344ad58da7b1dc91c19c 100755 (executable)
@@ -9,7 +9,7 @@
     <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
index 2696cff76ecfa014b4228a6422bbc4efb127a360..354cc016671fb2a135d4615d649e4eb3c3bc8be5 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 8d933576db9920f2aecb08ed99a936deb3f0808c..3ad3df614d194b286a334167ec723b178e2f3e5c 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index a64cafd9b3da00c2682a91a4882cf7fab7716b12..482e8e21dfecb07321414cc19fc8522a851a666e 100755 (executable)
@@ -7,10 +7,10 @@
     <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)
index 8eb5ff05b1dbd8afedbc61d0cc5321b2f300d739..ae8cd2d4ed2e0a1ab1fe3c353b9dda6822cb20bc 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index f83d934aeed17b7d962c982d73ca00bdaafa8700..6074a7a79f5ae8a720c467a19462568f40e4f307 100755 (executable)
@@ -9,11 +9,11 @@
     <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
index 86fe49782381b39381619c99bcb9ced8b048c504..faf3bcefac2e84f6d792cea91e9cfeb5475c33b9 100755 (executable)
@@ -11,7 +11,7 @@
     <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)
@@ -26,7 +26,7 @@ fi
 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)
@@ -36,8 +36,8 @@ if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
     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}')
@@ -89,9 +89,9 @@ if [ -f $raw_image ];then
     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
index be47fda1991aaec66ebec008747fbe2e7fb1a537..251d785dbac84c727625ba5a04befb5b60520fac 100755 (executable)
@@ -9,7 +9,7 @@
     <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)
index 692d1387a2c1995d85356973debacd67e44fa6a7..5510fb89afd0eca69b9cc4c889ad4b24a0a061c3 100755 (executable)
@@ -9,7 +9,7 @@
     <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)
index 94364b24807dc8267bd770eb508faef74be0ec8d..e8a6d10d02de06bf94920be216ddb21018ac0211 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index ded07412ad2e3ffcbe21ccbd79e2cb44f5edfeb9..1a92e9f4fa90ac28c8feec066ab54aa0c4c4a093 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index e4378e3b76b738119caa1e5b43f734b6173efec7..b4f77214e80d4ee2ae66983c153b688d0e5ead28 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 353d68d9ec9840314dbaedfbec2e99fadfca3e8b..31dd889cb15e0c2a0a4f35ad6cfb52af446da578 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 00e3a9285a77531e382e7ce2d0746cd4af1d9c9b..2946993e5fae4fddde00b7066e9e1880e0e3c769 100755 (executable)
@@ -8,7 +8,7 @@
     </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/
index fbb9f30e5e005532a4ca0ee9bb77ba6c5f453f75..fa78ee6e6ef1ca58b95e2d87bbf0b0d97a1db4c9 100755 (executable)
@@ -6,9 +6,9 @@
      <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..."
index f371fb1fccbd83c2666b39f250c9eca8d57e9968..938c2180b6685cf24a2e49a88fb1bd9f0051f89d 100755 (executable)
@@ -10,7 +10,7 @@ which called magic line, and magic line in this ks file is:
     <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)
index d117ea0076e6157af7421b3e0ff6c1a40781a231..0f2287dcdcdb5640fc93c695512178687ddc5647 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index a6882d7abad011f38d01363dee961444f9b1c011..bec6d09f4f1992d3dd1c9802cd648f47f7c56159 100755 (executable)
@@ -7,7 +7,7 @@
   </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)
index c8621be981c0c366845e9c1b37af8431f15d4d9c..6c3c8043025d1bd940cb21cac63d49f6fdf012de 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 46ad385357ea6d4c8bdab1f2bc2f0ab0abb262bb..8c99434c759b0a2997300ca670e3efb7d7dbff18 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index a06cb1af3e02a2a90cacdd71649fa416dcd6fce6..f550130d46c3164575c7fade1c610f57a96fb6b0 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index f47247f09c84c5a0c2b1aa79b308caf19ebcff4c..3836aac086edaf05f98fcb1d73fc9b6005a4655d 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 8e8932bd161e8e834d5660a0e5774a4d5bd7e7f6..91cf81842cc8d60f964047e2b8990ec74337f88c 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 40f03212196e4a325a8d9e49e63bd9926caa45b7..1d144aa104cd37467b13eb868c73bcc800bbd89d 100755 (executable)
@@ -10,7 +10,7 @@
     <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)
index a831a3ad062db01130037802d4924065e21798bf..f4fa38c02e951fab30279d3212e132d9b37c8bd9 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 0cf80b4743b004a212dafb249a53db7cd2c6c6a7..dc096c91cfb48c77ff1412768ca6c408120061b3 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 22113812b857db3cdfac639dc1569161253e2534..02e893b69ab4132efc6e8f83ff2fdb7b230c5e82 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 69fff43a45b118c8a4571662479c312c00ad19cc..79b0f144174f3b1888ccf47a54fc3d7b73f81d7a 100755 (executable)
@@ -7,7 +7,7 @@
     </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)
index ec67cac2aeceb8edfc5a8634291b95b88df010f5..28973e35c76e0a1a9c45c41d3e14f2449e818b64 100755 (executable)
@@ -7,7 +7,7 @@
     </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)
index c582ac1421c2a7c23f3b75cc4aaf138f33ed1ece..b99b3be5516f284a518ddd46711e7ea6aee71ad7 100755 (executable)
@@ -7,7 +7,7 @@
     </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)
index f393faef63403d5204d03f9bb31f6d9ec5a15bd6..134d37c6c012e0109c02d9fe57195c57b6883f66 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 04894347aa1237792b37b2b992ead58684a57c67..7947afafa9601ca0c0d7512a836b00d30b32b4fa 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index a6840cf959a2e9f1c77ad910b9f2beda2fd42bda..0a8c80303afb93d8089b1e4c33bd7ceb72b1c59e 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 2300a50e4011edd96838b49a9dbf180a0e6db777..2c4fa28b7d3810ef169ab9abbccc55e6bf7b0c7c 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 9741b222d2dda146518c44bffd1f18e9802c3ee6..9d224c07ccd606b6123177f68ada85894ed845c5 100755 (executable)
@@ -14,7 +14,7 @@
     <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)
index cfb895146a2c2302dcb2211d8c74deaa5dea9195..03b8f04ba9f0a7272be78c188bf74c6de831be64 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 845537175b1e0ea7a35586a1145dbe518b2d291f..6d81f43b0d8afd8dbbd411bccf052bfd9adc1acf 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 9eae4a466813afd8715ce5ed6435cffabe9f19ce..28427de0e0da9e7b05bab370597ad901bd64b2dd 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 988259a8038c3ce318456bc433f2fe8136fad853..da8217e5bbbb07aee3a802c3c0961419df679f22 100755 (executable)
@@ -9,7 +9,7 @@
     <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)
index 8f7d521a7255a694a138929b66531a4d9421ef0a..a088ec0f139d2ceee6b1512b249a5ca9c8c38555 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index f414b0acb724d46091aef8815a31c1da360f506b..c8713ea93f5acd27140aa28479e637369b1b0ba0 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 11b5456cd8f2fa6278c056b8d459a43a27e67d07..6ccb76943f2965422dba95d9ef39e1a5cc972fa9 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 7de0f0084190ca1005841f1e618c93965f837070..76ff5c4f9e0894f74f2959d3db9810b2f9df26f0 100755 (executable)
@@ -8,7 +8,7 @@
     </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)
index 06fd9d30a0d3aeb0c68ce999e67aff7906238a6e..af05707fd7cd46f3c9afe5375707b5809335d2c8 100755 (executable)
@@ -11,7 +11,7 @@
     <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)
index 08a029681bc81e143b8d096588a2456d94cedf51..4114636d45fafc135ad702d3e369cd9fca5d70b5 100755 (executable)
@@ -8,7 +8,7 @@ There is no need to give an existed file name, mic will create a new file with t
     <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)
index 47dc14cd41d06ddde6b612ff95db1503a2e4f0e8..986b360af68d41e438d40087aeb04b94f8fba9b1 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 11fadbe9fab3cea8884f88a455d0675b2943c289..b6587970427561206611ef1ecef0d211ebcc96ae 100755 (executable)
@@ -7,7 +7,7 @@ it can be set to an existed directory and also can be set to an unexisted direct
     <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)
index 2e5683965c8f56b49d3dbbd62e9079e657eacd72..59245daec9a0083f922a98e0c50dc0ef7c7f8c6a 100755 (executable)
@@ -7,7 +7,7 @@ a subdirectory under /root is given to it, related images should can be found un
     <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)
index d6977cac912b1c8c74d809f6df0f3f4a0681e843..4f5712acb47f3cd62ada4c5d97415d1744972a67 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index cdddf7e33e87a85430c789002a68c33a831cca4d..1fdf8d61fcf7455066ef566741e70b95ca709fe8 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index d1b7434d44ba4d679de8fa93341a24289e375f02..a37259876f50aabd0ff74e067082e2da9e0b81c3 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 31259ed3fb1842c89f37a5a39012fa17b9865c42..748597f598b53ce9459b57069b364a5e9be6dade 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 9ef7b89ebf483050b7e0e85f9fa52997894cbd52..54840b11d457a6bbc5381aff8532379dbbc413e8 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index ced41e841f4ec39905b9fac6105951aec1d71d4b..cf8a6e61c45cac74a09b78038fa3b274682c3898 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 1f6fdfdbd9432b8f7c8e8d70ac6a6b2bd4135308..3a62e0465f80a85ab9974b802a764c9816d7b9fb 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 1939dd8a198b4b418745273d9288d18a6cf7bab2..b0667ecf63a426149f78ecac2b3e72edabb6bf68 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 7104528a325696919a498065efdcc614a65dc513..6c56dd034b4610bfb58413389e6c3cf0f5ab1add 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 8666bb319e03bf19d3f83dd1a9200f4756f43c67..21c99fa77c332c39bd0790895a6b6c14bb724ab4 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index f75b88245ee3e25a44885c00e8cc55ddcc42226d..8ccb8832575c7f22070c7ddc3cf52c18e0604335 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index a226f8539f9e733b7d6d6256664f5aef0b393df3..d3d08e6ae258bb0175f1c4d0fd8faf966af91226 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index f2fadce699bca5db42530f9b7939025a0aba01d3..9006a562f398197c1faf1fb059144e6db482d317 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index f7ceb7d5da78c5cf351c15fd588ce72d4ba7b1ff..98946696356d9feea692fa752ca63676100f632e 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 4752afa0b7249007849d2f822e7b857538a2a9df..255fe62457fcd343415312d0337c5160168bb816 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
@@ -25,7 +25,7 @@ if [ "$loop_used_before" -ne "$loop_used_after" ];then
 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
index 3a82746f53e83579f98fb1630504f1ebda4f8250..237ccd125bfd7f4a9463dbf4ecc95287afdcce1b 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index bec06d1ccb324163cf8a07846848939a46f3b547..e402903856a312a7803387cac0e6b5afed2a0f92 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 9facb7a337b78279d013f56e69a453c48bb62a47..38d616d994c1de07f2204054c43166ca3ceade1b 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 86f34eeb6dec1be340921bf5d19eac06ef58e165..3c06cb73b3cf03d33c21fb6334ddb8d82ca96e86 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index d0ae2f5af4e027652ec4648b547c6cf3059c41df..a9e8b0601cbb11c9daa57f53ca55e9409661e259 100755 (executable)
@@ -8,7 +8,7 @@ then test whether image will generate correspondently.</summary>
     <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)
index d411aa9dbd3285dbb1975724686ed1397d07ef49..fd5b6125330e51295c5e9aae3fb0302a907faed7 100755 (executable)
@@ -8,7 +8,7 @@ then test whether image will generate correspondently.</summary>
     <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)
index 9a05a9f80d409ff6e7ae0dab808281bef96e54be..51bb3a6a5a40071cadb9c5322cda418b809d3335 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 21d7ae68e1a5d89ee5a1698a99db2b4ea649eaad..16e073d18373d9e4deafee2ef81dbe6abc019cb4 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 62e3ed48d94c5b3bb34ccc305f6657230c192e31..abc13f8aa5c9c4bf90ce72ceee74a629c9902d10 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 0a40ccf1ad555e426a8f7a6ddbc7614da3b8eddb..93372093f6ad4c3817510fb043d9e6f34178a268 100755 (executable)
@@ -8,7 +8,7 @@
     <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)
index 09ca0bf3bee0e96b7aaec1e2ea5116626ee0bff7..8cf930a65bfdaac1ca5f4a88a4c1268cf844cf94 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 559ce168cc52ce64c1d5de1b001d07b19f221943..6484a6e9d6313a627e5a2e95237cda5d431d6c17 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 53480b903be5ac78150a1cf58ce7865ffed4b629..9c28c7a91400bcedea1e016f7f75650c6f34f815 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 8718884ea2819ba3d9d653d343356d820b418968..c24c14fb66672fd2f5d0c4b6d8168e17ecbf43f2 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 51d3721f59215edd0211d10dcb00cb5d51bc8711..8ffd290848bd8eba1db9692bed4958860997f080 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index 357b6f0b025f5030d7314386e658d5939ec6b471..ea1f006d7cbee8b0f89e93b76ad95967d4ac0999 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index a956dd515bc49ecc3d8065ca7d6ed6ba47f7eddf..8a344ab9c67d302d404fb489e857f87656247cc6 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 0d0578fbbb2e1ee4123e3927fad9055ca056cbd8..8ea3b9148a9b748964233257b5885061fd0c4a1e 100755 (executable)
@@ -7,7 +7,7 @@
     <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)
index 6796adc7e028edf88959e8fbc3fa6521652dbf4b..891d5de3c73c215a0738b7a44b6e8e05ad88fa87 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
index a21d26511a917989e0d1396e6af66b5d3b2dae6d..f9dd89048ddc806b0eb903aaa2c617cf43246a2b 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
@@ -22,7 +22,7 @@ fi
 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)
@@ -32,8 +32,8 @@ if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
     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}')
@@ -84,9 +84,9 @@ if [ -f $raw_image ];then
     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
index 269a9ccae5dc4aa0604624463169dc34a1664cac..7a0b1a3b323c8882e236b5e30c01dfeea32ab7b4 100755 (executable)
@@ -6,7 +6,7 @@
     <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)
@@ -22,7 +22,7 @@ fi
 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)
@@ -32,8 +32,8 @@ if [ "$distro" = "fedora" ] || [ "$distro" = "centos linux" ]; then
     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}')
@@ -85,9 +85,9 @@ if [ -f $raw_image ];then
     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
index e3105b893aba9828c7f12fdfee966ea37be8b739..38a9cb40c11050d224f5ba7bbbc53e15a0a87dee 100755 (executable)
@@ -6,7 +6,7 @@
     <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)