diff --git "a/20240130/MilkV-Duo-\351\225\234\345\203\217\345\210\267\345\206\231\346\265\213\350\257\225.md" "b/20240130/MilkV-Duo-\351\225\234\345\203\217\345\210\267\345\206\231\346\265\213\350\257\225.md" new file mode 100644 index 0000000000000000000000000000000000000000..0b934a984a3fdb1b4a811bc5fb5ad5f59fbe119a --- /dev/null +++ "b/20240130/MilkV-Duo-\351\225\234\345\203\217\345\210\267\345\206\231\346\265\213\350\257\225.md" @@ -0,0 +1,46 @@ +# RUYI 包管理 20240130 版本镜像刷写测试报告 + +本次测试基于 RUYI 20240130 版本预编译的 riscv64 架构版本二进制 ruyi.riscv64。 + +由于涉及到硬盘镜像写入和开发板镜像烧录,本次测试手动进行。 + +### 测试环境说明 + ++ 测试环境为 Arch Linux x86_64。 + +### 测试执行 + +0. 安装 ruyi CLI: `sudo curl -Lo /usr/bin/ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/testing/ruyi.amd64.20240116 && sudo chmod +x /usr/bin/ruyi` +2. 运行 `ruyi device provition`。 +3. 按提示进行操作。 +4. 查看镜像是否正确写入,检查开发板能否启动。 + +### 测试结果 + +Milk-V Duo 64M 版本的镜像能够被正常写入且正常启动; + +镜像能被正确写入到外置存储设备上,经单独测试,系统正常启动。 + +### 测试结论 + +ruyi 20240130 版本的 device provision 功能通过测试。 + +### 测试用例列表 + +| 测试用例名 | 测试内容 | +|:------------------------:|:--------------------------:| +| Milk-V Duo 镜像刷写 | 测试 dd 镜像是否正常 | + + +### 失败用例列表 + +| 测试环境 | 测试用例名 | 状态 | 日志文件 | 原因 | +| :-: | :-: | :-: | :-: | :-: | + +### 其他信息 + +屏幕录像可查看: + +#### Milk-V Duo +[![Milk-V Duo](https://asciinema.org/a/rsenSOJwdlmUXcJ8sQwubPgtr.svg)](https://asciinema.org/a/rsenSOJwdlmUXcJ8sQwubPgtr?autoplay=1) + diff --git a/20240130/RevyOS-LPi4A.md b/20240130/RevyOS-LPi4A.md index c3699caf00e707b35a2b8dea09722ecddc02b28a..454380d354b6a130ee0afbf16489080322e1bee7 100644 --- a/20240130/RevyOS-LPi4A.md +++ b/20240130/RevyOS-LPi4A.md @@ -60,7 +60,7 @@ for file in $(find ./logs -name "*:*"); do mv "$file" "${file//:/_}"; done | 测试环境 | 测试用例名 | 状态 | 日志文件 | 原因 | | :-: | :-: | :-: | :-: | :-: | -| RevyOS | ruyi\_test\_device | failed | [log](/20240116/logs/RevyOS-LPi4A/ruyi_test_device) | | +| RevyOS | ruyi\_test\_device | failed | [log](/20240116/logs/RevyOS-LPi4A/ruyi_test_device) | log显示成功 | ### 其他信息 diff --git a/20240130/fedora-SG2042-Pioneer.md b/20240130/fedora-SG2042-Pioneer.md index e9c43c9a818a4fcdfc3a17784d91b956377052dc..720a4b596ab9c6ef62803fc50393bd1dfb8d4b0f 100644 --- a/20240130/fedora-SG2042-Pioneer.md +++ b/20240130/fedora-SG2042-Pioneer.md @@ -62,9 +62,9 @@ for file in $(find ./logs -name "*:*"); do mv "$file" "${file//:/_}"; done | 测试环境 | 测试用例名 | 状态 | 日志文件 | 原因 | | :-: | :-: | :-: | :-: | :-: | -| fedora | ruyi\_test\_cmake\_ninja | fail | [logs](/20240130/logs/fedora38-riscv64-sg2042/ruyi_test_cmake_ninja) | | -| | ruyi\_test\_device | fail | [logs](/20240130/logs/fedora38-riscv64-sg2042/) | | -| | ruyi\_test\_venv | fail | [logs](/20240130/logs/fedora38-riscv64-sg2042/) | | +| fedora | ruyi\_test\_cmake\_ninja | fail | [logs](/20240130/logs/fedora38-riscv64-sg2042/ruyi_test_cmake_ninja) | 磁盘空间不足 | +| | ruyi\_test\_device | fail | [logs](/20240130/logs/fedora38-riscv64-sg2042/) | log显示成功 | +| | ruyi\_test\_venv | fail | [logs](/20240130/logs/fedora38-riscv64-sg2042/) | 重测后通过 | ### 其他信息 diff --git a/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_admin/2024-02-04-13_58_55.log b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_admin/2024-02-04-13_58_55.log new file mode 100644 index 0000000000000000000000000000000000000000..26d7de602477303092b2b2c522f1659cf39af1cb --- /dev/null +++ b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_admin/2024-02-04-13_58_55.log @@ -0,0 +1,140 @@ ++ source ./common/common_lib.sh +++ source /root/ruyi-mugen/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /root/ruyi-mugen/libs/locallibs/common_lib_python.sh ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Sun Feb 4 13:58:56 2024 - INFO - Start environmental preparation. ++ install_ruyi ++ DNF_INSTALL 'git tar bzip2 xz zstd unzip' ++ pkgs='git tar bzip2 xz zstd unzip' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py install --pkgs 'git tar bzip2 xz zstd unzip' --node 1 --tempfile '' ++ tmpfile2=/tmp/tmp2tnbgy4n ++ '[' -z '' ']' ++ tmpfile=/tmp/tmp2tnbgy4n ++ APT_INSTALL 'git tar bzip2 xz-utils zstd unzip' ++ pkgs='git tar bzip2 xz-utils zstd unzip' ++ node=1 ++ '[' -z /tmp/tmp2tnbgy4n ']' +++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py install --pkgs 'git tar bzip2 xz-utils zstd unzip' --node 1 --tempfile /tmp/tmp2tnbgy4n +Sun Feb 4 13:59:22 2024 - INFO - unsupported package manager: apt-get ++ tmpfile2= ++ '[' -z /tmp/tmp2tnbgy4n ']' ++ version=0.4.0 ++ arch=amd64 +++ uname -m ++ larch=riscv64 ++ '[' riscv64 == riscv64 ']' ++ arch=riscv64 ++ '[' riscv64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.4.0/ruyi.riscv64 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 7 10.4M 7 828k 0 0 1509k 0 0:00:07 --:--:-- 0:00:07 1508k 100 10.4M 100 10.4M 0 0 7645k 0 0:00:01 0:00:01 --:--:-- 7650k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /root/ruyi-mugen/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Sun Feb 4 13:59:23 2024 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Sun Feb 4 13:59:23 2024 - INFO - Start to run test. ++ test_file=ruyi_test_admin.sh ++ ruyi admin manifest ruyi_test_admin.sh +[ + { + "name": "ruyi_test_admin.sh", + "size": 1264, + "checksums": { + "sha512": "8118777af6b72fef50adf90d748009b61cf69ac83d75fcccbcb6fbded219af8ebcd0685476c5fadd9d79231d1877a679f34b57f92c986bfd15bcea74e215c135", + "sha256": "6e44debe7921d02c3987bc67f331ae64fdf63df58a58c05716b50c10f3cfe266" + } + } +] ++ CHECK_RESULT 0 0 0 'Check ruyi admin manifest failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi admin manifest failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Sun Feb 4 13:59:26 2024 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z '' ++ test 0 -eq 0 ++ LOG_INFO 'succeed to execute the case.' ++ message='succeed to execute the case.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.' +Sun Feb 4 13:59:26 2024 - INFO - succeed to execute the case. ++ exec_result= ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Sun Feb 4 13:59:26 2024 - INFO - start environment cleanup. ++ remove_ruyi ++ PKG_REMOVE ++ node=1 ++ pkg_list= ++ mode=0 ++ [[ -z /tmp/tmp2tnbgy4n ]] ++ '[' 0 -ne 0 ']' ++ '[' 1 == 0 ']' ++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmp2tnbgy4n ++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmp2tnbgy4n +Sun Feb 4 13:59:31 2024 - INFO - unsupported package manager: apt-get +(0, None) ++ '[' 0 -ne 0 ']' ++ remove_ruyi_data +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi +++ get_ruyi_state_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/state +++ echo /root/.local/state/ruyi ++ rm -rf /root/.cache//ruyi /root/.local/share/ruyi /root/.local/state/ruyi ++ rm -f ruyi ++ rm -f /usr/bin/ruyi ++ export RUYI_DEBUG= ++ RUYI_DEBUG= ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Sun Feb 4 13:59:32 2024 - INFO - Finish environment cleanup! diff --git a/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_cmake_ninja/2024-02-04-14_29_14.log b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_cmake_ninja/2024-02-04-14_29_14.log new file mode 100644 index 0000000000000000000000000000000000000000..df6c68cbdb08eb4b17c0899690c686e824cfee81 --- /dev/null +++ b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_cmake_ninja/2024-02-04-14_29_14.log @@ -0,0 +1,285 @@ ++ source ./common/common_lib.sh +++ source /root/ruyi-mugen/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /root/ruyi-mugen/libs/locallibs/common_lib_python.sh ++ EXECUTE_T=60m ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Sun Feb 4 14:29:15 2024 - INFO - Start environmental preparation. ++ install_ruyi ++ DNF_INSTALL 'git tar bzip2 xz zstd unzip' ++ pkgs='git tar bzip2 xz zstd unzip' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py install --pkgs 'git tar bzip2 xz zstd unzip' --node 1 --tempfile '' ++ tmpfile2=/tmp/tmp07klz_35 ++ '[' -z '' ']' ++ tmpfile=/tmp/tmp07klz_35 ++ APT_INSTALL 'git tar bzip2 xz-utils zstd unzip' ++ pkgs='git tar bzip2 xz-utils zstd unzip' ++ node=1 ++ '[' -z /tmp/tmp07klz_35 ']' +++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py install --pkgs 'git tar bzip2 xz-utils zstd unzip' --node 1 --tempfile /tmp/tmp07klz_35 +Sun Feb 4 14:29:43 2024 - INFO - unsupported package manager: apt-get ++ tmpfile2= ++ '[' -z /tmp/tmp07klz_35 ']' ++ version=0.4.0 ++ arch=amd64 +++ uname -m ++ larch=riscv64 ++ '[' riscv64 == riscv64 ']' ++ arch=riscv64 ++ '[' riscv64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.4.0/ruyi.riscv64 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 27 10.4M 27 2979k 0 0 3074k 0 0:00:03 --:--:-- 0:00:03 3074k 83 10.4M 83 8915k 0 0 4524k 0 0:00:02 0:00:01 0:00:01 4525k 100 10.4M 100 10.4M 0 0 4790k 0 0:00:02 0:00:02 --:--:-- 4793k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /root/ruyi-mugen/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi ++ DNF_INSTALL 'cmake ninja-build' ++ pkgs='cmake ninja-build' ++ node=1 ++ '[' -z /tmp/tmp07klz_35 ']' +++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py install --pkgs 'cmake ninja-build' --node 1 --tempfile /tmp/tmp07klz_35 ++ tmpfile2=/tmp/tmp07klz_35 ++ '[' -z /tmp/tmp07klz_35 ']' ++ APT_INSTALL 'cmake ninja-build' ++ pkgs='cmake ninja-build' ++ node=1 ++ '[' -z /tmp/tmp07klz_35 ']' +++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py install --pkgs 'cmake ninja-build' --node 1 --tempfile /tmp/tmp07klz_35 +Sun Feb 4 14:30:16 2024 - INFO - unsupported package manager: apt-get ++ tmpfile2= ++ '[' -z /tmp/tmp07klz_35 ']' ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Sun Feb 4 14:30:17 2024 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Sun Feb 4 14:30:17 2024 - INFO - Start to run test. ++ mkdir build ++ cd build ++ tar zxf ../common/source/zlib-ng-2.1.5.tar.gz ++ ruyi update +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/update_cli.py", line 14, in cli_update + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 64, in sync + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ ruyi install gnu-plct gnu-plct-xthead +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 219, in cli_install + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 242, in do_install_atoms + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/atom.py", line 74, in match_in_repo + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 206, in get_pkg_latest_ver + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ ruyi venv -t gnu-plct-xthead sipeed-lpi4a ./coremark_venv + Counting: 0%| | 0/498.0 [00:00 + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi empty list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi empty list failed' ++ LOG_ERROR 'Check ruyi empty list failed' ++ message='Check ruyi empty list failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi empty list failed' +Sun Feb 4 13:43:20 2024 - ERROR - Check ruyi empty list failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 37' ++ message='ruyi_test_common.sh line 37' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 37' +Sun Feb 4 13:43:20 2024 - ERROR - ruyi_test_common.sh line 37 ++ '[' 0 -eq 1 ']' ++ return 0 +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ '[' -d /root/.cache//ruyi ']' ++ CHECK_RESULT 0 0 0 'Check ruyi create cache directory failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi create cache directory failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ ruyi update +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/update_cli.py", line 14, in cli_update + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 64, in sync + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi update failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi update failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi update failed' ++ LOG_ERROR 'Check ruyi update failed' ++ message='Check ruyi update failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi update failed' +Sun Feb 4 13:45:33 2024 - ERROR - Check ruyi update failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 41' ++ message='ruyi_test_common.sh line 41' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 41' +Sun Feb 4 13:45:33 2024 - ERROR - ruyi_test_common.sh line 41 ++ '[' 0 -eq 1 ']' ++ return 0 +++ ruyi list +++ grep -e '^* ' +++ wc -l +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ pkgcnt=0 ++ CHECK_RESULT 0 0 1 'Check ruyi list failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi list failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi list failed' ++ LOG_ERROR 'Check ruyi list failed' ++ message='Check ruyi list failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list failed' +Sun Feb 4 13:47:46 2024 - ERROR - Check ruyi list failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 43' ++ message='ruyi_test_common.sh line 43' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 43' +Sun Feb 4 13:47:46 2024 - ERROR - ruyi_test_common.sh line 43 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list ++ grep 'Package declares' +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 1 'Check ruyi brief list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi brief list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Package declares' +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 30, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi list verbose package failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose package failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi list verbose package failed' ++ LOG_ERROR 'Check ruyi list verbose package failed' ++ message='Check ruyi list verbose package failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list verbose package failed' +Sun Feb 4 13:50:11 2024 - ERROR - Check ruyi list verbose package failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 47' ++ message='ruyi_test_common.sh line 47' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 47' +Sun Feb 4 13:50:12 2024 - ERROR - ruyi_test_common.sh line 47 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list --verbose ++ grep 'Binary artifacts' +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 30, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi list verbose artifacts failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose artifacts failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi list verbose artifacts failed' ++ LOG_ERROR 'Check ruyi list verbose artifacts failed' ++ message='Check ruyi list verbose artifacts failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list verbose artifacts failed' +Sun Feb 4 13:52:24 2024 - ERROR - Check ruyi list verbose artifacts failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 49' ++ message='ruyi_test_common.sh line 49' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 49' +Sun Feb 4 13:52:25 2024 - ERROR - ruyi_test_common.sh line 49 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list --verbose ++ grep 'Toolchain metadata' +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 30, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi list verbose metadata failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose metadata failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi list verbose metadata failed' ++ LOG_ERROR 'Check ruyi list verbose metadata failed' ++ message='Check ruyi list verbose metadata failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list verbose metadata failed' +Sun Feb 4 13:54:38 2024 - ERROR - Check ruyi list verbose metadata failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 51' ++ message='ruyi_test_common.sh line 51' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 51' +Sun Feb 4 13:54:38 2024 - ERROR - ruyi_test_common.sh line 51 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list profiles +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/profile_cli.py", line 14, in cli_list_profiles + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 126, in iter_profiles + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 134, in ensure_profile_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi profile failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi profile failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi profile failed' ++ LOG_ERROR 'Check ruyi profile failed' ++ message='Check ruyi profile failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi profile failed' +Sun Feb 4 13:56:51 2024 - ERROR - Check ruyi profile failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_common.sh line 54' ++ message='ruyi_test_common.sh line 54' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_common.sh line 54' +Sun Feb 4 13:56:51 2024 - ERROR - ruyi_test_common.sh line 54 ++ '[' 0 -eq 1 ']' ++ return 0 +++ ruyi list +++ grep -e '^* toolchain' +++ cut -d/ -f 2 + Counting: 0%| | 0/498.0 [00:00&1 + 2289 Killed | tee > /tmp/ruyi_device/output ++ kill -9 2363 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='11.4M 18.6M 26.9M 36.2M 46.6M 55.9M 68.4M 84.5M 110M 129M 149M 162M 181M 201M 231M ' +++ echo 11.4M 18.6M 26.9M 36.2M 46.6M 55.9M 68.4M 84.5M 110M 129M 149M 162M 181M 201M 231M ++ for i in $(echo $curl_out) ++ [[ 11.4M =~ [0-9]+ ]] ++ [[ 11.4M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n1\n1\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y112y +++ echo -E y112y +++ sed 's$/$_$g' ++ now_exec_f=y112y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y112y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n1\n1\n2\nn' 2 ++ local 'now_exec=y\n1\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n1\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n1\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y112n +++ echo -E y112n +++ sed 's$/$_$g' ++ now_exec_f=y112n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y112n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n2' 0 ++ local 'now_exec=y\n2' ++ local end_exec=0 ++ [[ 4 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n2\n1' 0 ++ local 'now_exec=y\n2\n1' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-2) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n2\n1\n1' 0 ++ local 'now_exec=y\n2\n1\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2\n1\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n2\n1\n1\ny' y ++ local 'now_exec=y\n2\n1\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n2\n1\n1\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2361 Done nohup echo -e "$now_exec" + 2362 Exit 120 | ruyi device provision 2>&1 + 2363 Killed | tee > /tmp/ruyi_device/output ++ kill -9 2472 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out=' 8403 231k 317k 407k 570k 658k 698k 771k 944k 1035k 1108k 1225k 1284k 1345k ' +++ echo 8403 231k 317k 407k 570k 658k 698k 771k 944k 1035k 1108k 1225k 1284k 1345k ++ for i in $(echo $curl_out) ++ [[ 8403 =~ [0-9]+ ]] ++ [[ 8403 != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n1\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y211y +++ echo -E y211y +++ sed 's$/$_$g' ++ now_exec_f=y211y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y211y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n2\n1\n1\nn' 2 ++ local 'now_exec=y\n2\n1\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n2\n1\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n1\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y211n +++ echo -E y211n +++ sed 's$/$_$g' ++ now_exec_f=y211n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y211n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n2\n1\n2' 0 ++ local 'now_exec=y\n2\n1\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2\n1\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n2\n1\n2\ny' y ++ local 'now_exec=y\n2\n1\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n2\n1\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 2545 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='0 416k 783k 870k 922k 1010k 1098k 1190k 1265k 1343k 1405k 1502k 1615k 1663k 1738k ' +++ echo 0 416k 783k 870k 922k 1010k 1098k 1190k 1265k 1343k 1405k 1502k 1615k 1663k 1738k ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 416k =~ [0-9]+ ]] ++ [[ 416k != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n1\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y212y +++ echo -E y212y +++ sed 's$/$_$g' ++ now_exec_f=y212y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y212y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n2\n1\n2\nn' 2 ++ local 'now_exec=y\n2\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n2\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y212n +++ echo -E y212n +++ sed 's$/$_$g' ++ now_exec_f=y212n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y212n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n2\n2' 0 ++ local 'now_exec=y\n2\n2' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-2) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n2\n2\n1' 0 ++ local 'now_exec=y\n2\n2\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2\n2\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n2\n2\n1\ny' y ++ local 'now_exec=y\n2\n2\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n2\n2\n1\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 2637 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ' +++ echo 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n2\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y221y +++ echo -E y221y +++ sed 's$/$_$g' ++ now_exec_f=y221y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y221y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n2\n2\n1\nn' 2 ++ local 'now_exec=y\n2\n2\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n2\n2\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n2\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y221n +++ echo -E y221n +++ sed 's$/$_$g' ++ now_exec_f=y221n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y221n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n2\n2\n2' 0 ++ local 'now_exec=y\n2\n2\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n2\n2\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n2\n2\n2\ny' y ++ local 'now_exec=y\n2\n2\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n2\n2\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 2713 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out=' 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ' +++ echo 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ for i in $(echo $curl_out) ++ [[ 0 =~ [0-9]+ ]] ++ [[ 0 != \0 ]] ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n2\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y222y +++ echo -E y222y +++ sed 's$/$_$g' ++ now_exec_f=y222y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y222y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n2\n2\n2\nn' 2 ++ local 'now_exec=y\n2\n2\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n2\n2\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n2\n2\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y222n +++ echo -E y222n +++ sed 's$/$_$g' ++ now_exec_f=y222n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y222n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ for step in ${next_step[@]} ++ '[' 3 '!=' n ']' ++ recursion_run 'y\n3' 0 ++ local 'now_exec=y\n3' ++ local end_exec=0 ++ [[ 4 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-3) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-3)' ++ [[ (1-3) == \(\y\/\N\) ]] ++ [[ (1-3) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 3 ++ next_step=('1' '2' '3') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n3\n1' 0 ++ local 'now_exec=y\n3\n1' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-3) +Choice? (1-3) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-3)' ++ [[ (1-3) == \(\y\/\N\) ]] ++ [[ (1-3) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 3 ++ next_step=('1' '2' '3') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n3\n1\n1' 0 ++ local 'now_exec=y\n3\n1\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n1\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n1\n1\ny' y ++ local 'now_exec=y\n3\n1\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n3\n1\n1\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ tee ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 2836 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='12.4M 19.4M 27.5M 36.6M 46.8M 58.2M 72.1M 90.1M 113M 132M 152M 171M 201M 221M 240M ' +++ echo 12.4M 19.4M 27.5M 36.6M 46.8M 58.2M 72.1M 90.1M 113M 132M 152M 171M 201M 221M 240M ++ for i in $(echo $curl_out) ++ [[ 12.4M =~ [0-9]+ ]] ++ [[ 12.4M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n1\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y311y +++ echo -E y311y +++ sed 's$/$_$g' ++ now_exec_f=y311y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y311y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n1\n1\nn' 2 ++ local 'now_exec=y\n3\n1\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n3\n1\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n1\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y311n +++ echo -E y311n +++ sed 's$/$_$g' ++ now_exec_f=y311n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y311n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n3\n1\n2' 0 ++ local 'now_exec=y\n3\n1\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n1\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n1\n2\ny' y ++ local 'now_exec=y\n3\n1\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n3\n1\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2470 Done nohup echo -e "$now_exec" + 2471 Exit 120 | ruyi device provision 2>&1 + 2472 Killed | tee > /tmp/ruyi_device/output ++ kill -9 2908 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='28.1M 47.5M 66.9M 86.4M 115M 135M 154M 164M 183M 202M 232M 251M 271M 291M 310M ' +++ echo 28.1M 47.5M 66.9M 86.4M 115M 135M 154M 164M 183M 202M 232M 251M 271M 291M 310M ++ for i in $(echo $curl_out) ++ [[ 28.1M =~ [0-9]+ ]] ++ [[ 28.1M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n1\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y312y +++ echo -E y312y +++ sed 's$/$_$g' ++ now_exec_f=y312y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y312y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n1\n2\nn' 2 ++ local 'now_exec=y\n3\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n3\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y312n +++ echo -E y312n +++ sed 's$/$_$g' ++ now_exec_f=y312n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y312n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 3 '!=' n ']' ++ recursion_run 'y\n3\n1\n3' 0 ++ local 'now_exec=y\n3\n1\n3' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n1\n3' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n1\n3\ny' y ++ local 'now_exec=y\n3\n1\n3\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 ++ nohup echo -e 'y\n3\n1\n3\ny' +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2834 Done nohup echo -e "$now_exec" + 2835 Exit 120 | ruyi device provision 2>&1 + 2836 Killed | tee > /tmp/ruyi_device/output ++ kill -9 2982 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ awk '{printf $4" "}' +++ tail -15 ++ curl_out='34.5M 53.9M 80.3M 90.0M 109M 128M 138M 157M 177M 187M 216M 226M 245M 264M 274M ' +++ echo 34.5M 53.9M 80.3M 90.0M 109M 128M 138M 157M 177M 187M 216M 226M 245M 264M 274M ++ for i in $(echo $curl_out) ++ [[ 34.5M =~ [0-9]+ ]] ++ [[ 34.5M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n1\n3\ny' +++ sed 's/\\n//g' ++ now_exec_f=y313y +++ echo -E y313y +++ sed 's$/$_$g' ++ now_exec_f=y313y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y313y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n1\n3\nn' 2 ++ local 'now_exec=y\n3\n1\n3\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ ruyi device provision ++ echo -e 'y\n3\n1\n3\nn' ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n1\n3\nn' +++ sed 's/\\n//g' ++ now_exec_f=y313n +++ echo -E y313n +++ sed 's$/$_$g' ++ now_exec_f=y313n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y313n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n3\n2' 0 ++ local 'now_exec=y\n3\n2' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-3) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n3\n2\n1' 0 ++ local 'now_exec=y\n3\n2\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n2\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ awk '{print $2}' +++ grep Proceed /tmp/ruyi_device/output +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n2\n1\ny' y ++ local 'now_exec=y\n3\n2\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 ++ nohup echo -e 'y\n3\n2\n1\ny' ++ ruyi device provision +nohup: ignoring input +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2635 Done nohup echo -e "$now_exec" + 2636 Exit 120 | ruyi device provision 2>&1 + 2637 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3073 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ awk '{printf $4" "}' +++ tail -15 +++ grep -A 20 Received +++ grep -A 20 Total /tmp/ruyi_device/output_e ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n2\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y321y +++ echo -E y321y +++ sed 's$/$_$g' ++ now_exec_f=y321y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y321y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n2\n1\nn' 2 ++ local 'now_exec=y\n3\n2\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n3\n2\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n2\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y321n +++ echo -E y321n +++ sed 's$/$_$g' ++ now_exec_f=y321n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y321n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n3\n2\n2' 0 ++ local 'now_exec=y\n3\n2\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n2\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ tail -1 +++ awk '{print $2}' ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n2\n2\ny' y ++ local 'now_exec=y\n3\n2\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 ++ nohup echo -e 'y\n3\n2\n2\ny' +nohup: ignoring input ++ ruyi device provision ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2906 Done nohup echo -e "$now_exec" + 2907 Exit 120 | ruyi device provision 2>&1 + 2908 Killed | tee > /tmp/ruyi_device/output +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2980 Done nohup echo -e "$now_exec" + 2981 Exit 120 | ruyi device provision 2>&1 + 2982 Killed | tee > /tmp/ruyi_device/output +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3071 Done nohup echo -e "$now_exec" + 3072 Exit 120 | ruyi device provision 2>&1 + 3073 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3143 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n2\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y322y +++ echo -E y322y +++ sed 's$/$_$g' ++ now_exec_f=y322y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y322y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n2\n2\nn' 2 ++ local 'now_exec=y\n3\n2\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n3\n2\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n2\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y322n +++ echo -E y322n +++ sed 's$/$_$g' ++ now_exec_f=y322n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y322n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ for step in ${next_step[@]} ++ '[' 3 '!=' n ']' ++ recursion_run 'y\n3\n3' 0 ++ local 'now_exec=y\n3\n3' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n3' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-3) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n3\n3\n1' 0 ++ local 'now_exec=y\n3\n3\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n3\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n3\n1\ny' y ++ local 'now_exec=y\n3\n3\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n3\n3\n1\ny' ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ ruyi device provision +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2543 Done nohup echo -e "$now_exec" + 2544 Exit 120 | ruyi device provision 2>&1 + 2545 Killed | tee > /tmp/ruyi_device/output +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3141 Done nohup echo -e "$now_exec" + 3142 Exit 120 | ruyi device provision 2>&1 + 3143 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3230 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n3\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y331y +++ echo -E y331y +++ sed 's$/$_$g' ++ now_exec_f=y331y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y331y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n3\n1\nn' 2 ++ local 'now_exec=y\n3\n3\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n3\n3\n1\nn' ++ ruyi device provision +./common/device_lib.sh: line 36: 3228 Done nohup echo -e "$now_exec" + 3229 Exit 120 | ruyi device provision 2>&1 + 3230 Killed | tee > /tmp/ruyi_device/output ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n3\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y331n +++ echo -E y331n +++ sed 's$/$_$g' ++ now_exec_f=y331n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y331n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n3\n3\n2' 0 ++ local 'now_exec=y\n3\n3\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n3\n3\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n3\n3\n2\ny' y ++ local 'now_exec=y\n3\n3\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n3\n3\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 3299 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n3\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y332y +++ echo -E y332y +++ sed 's$/$_$g' ++ now_exec_f=y332y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y332y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n3\n3\n2\nn' 2 ++ local 'now_exec=y\n3\n3\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n3\n3\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n3\n3\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y332n +++ echo -E y332n +++ sed 's$/$_$g' ++ now_exec_f=y332n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y332n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ for step in ${next_step[@]} ++ '[' 4 '!=' n ']' ++ recursion_run 'y\n4' 0 ++ local 'now_exec=y\n4' ++ local end_exec=0 ++ [[ 4 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n4' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-1) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-1)' ++ [[ (1-1) == \(\y\/\N\) ]] ++ [[ (1-1) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 1 ++ next_step=('1') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n4\n1' 0 ++ local 'now_exec=y\n4\n1' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n4\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-1) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n4\n1\n1' 0 ++ local 'now_exec=y\n4\n1\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n4\n1\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n4\n1\n1\ny' y ++ local 'now_exec=y\n4\n1\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n4\n1\n1\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 2711 Done nohup echo -e "$now_exec" + 2712 Exit 120 | ruyi device provision 2>&1 + 2713 Killed | tee > /tmp/ruyi_device/output +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3297 Done nohup echo -e "$now_exec" + 3298 Exit 120 | ruyi device provision 2>&1 + 3299 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3413 +./common/device_lib.sh: line 48: kill: (3413) - No such process ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n4\n1\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y411y +++ echo -E y411y +++ sed 's$/$_$g' ++ now_exec_f=y411y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y411y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n4\n1\n1\nn' 2 ++ local 'now_exec=y\n4\n1\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n4\n1\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n4\n1\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y411n +++ echo -E y411n +++ sed 's$/$_$g' ++ now_exec_f=y411n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y411n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n4\n1\n2' 0 ++ local 'now_exec=y\n4\n1\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n4\n1\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n4\n1\n2\ny' y ++ local 'now_exec=y\n4\n1\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n4\n1\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 3483 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ sed 's/\\n//g' +++ echo -E 'y\n4\n1\n2\ny' ++ now_exec_f=y412y +++ echo -E y412y +++ sed 's$/$_$g' ++ now_exec_f=y412y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y412y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n4\n1\n2\nn' 2 ++ local 'now_exec=y\n4\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n4\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n4\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y412n +++ echo -E y412n +++ sed 's$/$_$g' ++ now_exec_f=y412n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y412n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ for step in ${next_step[@]} ++ '[' 5 '!=' n ']' ++ recursion_run 'y\n5' 0 ++ local 'now_exec=y\n5' ++ local end_exec=0 ++ [[ 4 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ tail -1 +++ awk '{print $2}' ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n5\n1' 0 ++ local 'now_exec=y\n5\n1' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-2) +Choice? (1-3) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ awk '{print $2}' +++ grep Choice /tmp/ruyi_device/output +++ tail -1 ++ output='(1-3)' ++ [[ (1-3) == \(\y\/\N\) ]] ++ [[ (1-3) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 3 ++ next_step=('1' '2' '3') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n5\n1\n1' 0 ++ local 'now_exec=y\n5\n1\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n1\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n5\n1\n1\ny' y ++ local 'now_exec=y\n5\n1\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n5\n1\n1\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3481 Done nohup echo -e "$now_exec" + 3482 Exit 120 | ruyi device provision 2>&1 + 3483 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3594 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='38.6M 58.2M 77.8M 97.4M 117M 136M 156M 175M 195M 215M 234M 254M 283M 293M 313M ' +++ echo 38.6M 58.2M 77.8M 97.4M 117M 136M 156M 175M 195M 215M 234M 254M 283M 293M 313M ++ for i in $(echo $curl_out) ++ [[ 38.6M =~ [0-9]+ ]] ++ [[ 38.6M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n1\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y511y +++ echo -E y511y +++ sed 's$/$_$g' ++ now_exec_f=y511y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y511y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n5\n1\n1\nn' 2 ++ local 'now_exec=y\n5\n1\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n5\n1\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n1\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y511n +++ echo -E y511n +++ sed 's$/$_$g' ++ now_exec_f=y511n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y511n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n5\n1\n2' 0 ++ local 'now_exec=y\n5\n1\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n1\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n5\n1\n2\ny' y ++ local 'now_exec=y\n5\n1\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n5\n1\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3592 Done nohup echo -e "$now_exec" + 3593 Exit 120 | ruyi device provision 2>&1 + 3594 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3674 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='12.9M 19.9M 27.7M 36.8M 46.4M 57.7M 72.1M 99.5M 109M 138M 157M 177M 196M 221M 241M ' +++ echo 12.9M 19.9M 27.7M 36.8M 46.4M 57.7M 72.1M 99.5M 109M 138M 157M 177M 196M 221M 241M ++ for i in $(echo $curl_out) ++ [[ 12.9M =~ [0-9]+ ]] ++ [[ 12.9M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n1\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y512y +++ echo -E y512y +++ sed 's$/$_$g' ++ now_exec_f=y512y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y512y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n5\n1\n2\nn' 2 ++ local 'now_exec=y\n5\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n5\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y512n +++ echo -E y512n +++ sed 's$/$_$g' ++ now_exec_f=y512n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y512n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 3 '!=' n ']' ++ recursion_run 'y\n5\n1\n3' 0 ++ local 'now_exec=y\n5\n1\n3' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n1\n3' ++ grep --line-buffered -Ev '^$|#' ++ ruyi device provision ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n5\n1\n3\ny' y ++ local 'now_exec=y\n5\n1\n3\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n5\n1\n3\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee ++ kill -9 3752 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='37.5M 57.1M 76.7M 96.3M 115M 135M 155M 174M 192M 221M 241M 260M 280M 300M 319M ' +++ echo 37.5M 57.1M 76.7M 96.3M 115M 135M 155M 174M 192M 221M 241M 260M 280M 300M 319M ++ for i in $(echo $curl_out) ++ [[ 37.5M =~ [0-9]+ ]] ++ [[ 37.5M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ sed 's/\\n//g' +++ echo -E 'y\n5\n1\n3\ny' ++ now_exec_f=y513y +++ echo -E y513y +++ sed 's$/$_$g' ++ now_exec_f=y513y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y513y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n5\n1\n3\nn' 2 ++ local 'now_exec=y\n5\n1\n3\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n5\n1\n3\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ sed 's/\\n//g' +++ echo -E 'y\n5\n1\n3\nn' ++ now_exec_f=y513n +++ echo -E y513n +++ sed 's$/$_$g' ++ now_exec_f=y513n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y513n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n5\n2' 0 ++ local 'now_exec=y\n5\n2' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-2) +Choice? (1-3) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-3)' ++ [[ (1-3) == \(\y\/\N\) ]] ++ [[ (1-3) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 3 ++ next_step=('1' '2' '3') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n5\n2\n1' 0 ++ local 'now_exec=y\n5\n2\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n2\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n5\n2\n1\ny' y ++ local 'now_exec=y\n5\n2\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 ++ nohup echo -e 'y\n5\n2\n1\ny' +nohup: ignoring input ++ ruyi device provision ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3672 Done nohup echo -e "$now_exec" + 3673 Exit 120 | ruyi device provision 2>&1 + 3674 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3847 +./common/device_lib.sh: line 48: kill: (3847) - No such process ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='for installed enough and to: RAM device ' +++ echo for installed enough and to: RAM device ++ for i in $(echo $curl_out) ++ [[ for =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ installed =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ enough =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ and =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ to: =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ RAM =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ device =~ [0-9]+ ]] ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n2\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y521y +++ echo -E y521y +++ sed 's$/$_$g' ++ now_exec_f=y521y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y521y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n5\n2\n1\nn' 2 ++ local 'now_exec=y\n5\n2\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n5\n2\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n2\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y521n +++ echo -E y521n +++ sed 's$/$_$g' ++ now_exec_f=y521n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y521n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n5\n2\n2' 0 ++ local 'now_exec=y\n5\n2\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n2\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n5\n2\n2\ny' y ++ local 'now_exec=y\n5\n2\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n5\n2\n2\ny' ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ ruyi device provision +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 3750 Done nohup echo -e "$now_exec" + 3751 Exit 120 | ruyi device provision 2>&1 + 3752 Killed | tee > /tmp/ruyi_device/output ++ kill -9 3951 +./common/device_lib.sh: line 48: kill: (3951) - No such process ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out= +++ echo ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n2\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y522y +++ echo -E y522y +++ sed 's$/$_$g' ++ now_exec_f=y522y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y522y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n5\n2\n2\nn' 2 ++ local 'now_exec=y\n5\n2\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n5\n2\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n2\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y522n +++ echo -E y522n +++ sed 's$/$_$g' ++ now_exec_f=y522n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y522n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 3 '!=' n ']' ++ recursion_run 'y\n5\n2\n3' 0 ++ local 'now_exec=y\n5\n2\n3' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n5\n2\n3' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n5\n2\n3\ny' y ++ local 'now_exec=y\n5\n2\n3\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n5\n2\n3\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 4019 +./common/device_lib.sh: line 48: kill: (4019) - No such process ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out=' installed installed enough and to: RAM device ' +++ echo installed installed enough and to: RAM device ++ for i in $(echo $curl_out) ++ [[ installed =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ installed =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ enough =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ and =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ to: =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ RAM =~ [0-9]+ ]] ++ for i in $(echo $curl_out) ++ [[ device =~ [0-9]+ ]] ++ '[' n = n ']' ++ echo -e '\nHappy hacking! 0 1' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n2\n3\ny' +++ sed 's/\\n//g' ++ now_exec_f=y523y +++ echo -E y523y +++ sed 's$/$_$g' ++ now_exec_f=y523y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y523y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n5\n2\n3\nn' 2 ++ local 'now_exec=y\n5\n2\n3\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n5\n2\n3\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n5\n2\n3\nn' +++ sed 's/\\n//g' ++ now_exec_f=y523n +++ echo -E y523n +++ sed 's$/$_$g' ++ now_exec_f=y523n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y523n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ for step in ${next_step[@]} ++ '[' 6 '!=' n ']' ++ recursion_run 'y\n6' 0 ++ local 'now_exec=y\n6' ++ local end_exec=0 ++ [[ 4 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n6' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-1) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-1)' ++ [[ (1-1) == \(\y\/\N\) ]] ++ [[ (1-1) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 1 ++ next_step=('1') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n6\n1' 0 ++ local 'now_exec=y\n6\n1' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n6\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-1) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n6\n1\n1' 0 ++ local 'now_exec=y\n6\n1\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n6\n1\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n6\n1\n1\ny' y ++ local 'now_exec=y\n6\n1\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n6\n1\n1\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ tee ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ kill -9 4128 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='38.7M 68.1M 87.7M 107M 126M 150M 170M 190M 209M 239M 258M 278M 297M 327M 346M ' +++ echo 38.7M 68.1M 87.7M 107M 126M 150M 170M 190M 209M 239M 258M 278M 297M 327M 346M ++ for i in $(echo $curl_out) ++ [[ 38.7M =~ [0-9]+ ]] ++ [[ 38.7M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n6\n1\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y611y +++ echo -E y611y +++ sed 's$/$_$g' ++ now_exec_f=y611y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y611y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n6\n1\n1\nn' 2 ++ local 'now_exec=y\n6\n1\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n6\n1\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n6\n1\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y611n +++ echo -E y611n +++ sed 's$/$_$g' ++ now_exec_f=y611n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y611n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n6\n1\n2' 0 ++ local 'now_exec=y\n6\n1\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n6\n1\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n6\n1\n2\ny' y ++ local 'now_exec=y\n6\n1\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n6\n1\n2\ny' ++ ruyi device provision ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 4126 Done nohup echo -e "$now_exec" + 4127 Exit 120 | ruyi device provision 2>&1 + 4128 Killed | tee > /tmp/ruyi_device/output ++ kill -9 4201 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='14.3M 20.5M 25.4M 30.4M 35.1M 46.3M 61.9M 85.6M 105M 119M 134M 156M 176M 201M 221M ' +++ echo 14.3M 20.5M 25.4M 30.4M 35.1M 46.3M 61.9M 85.6M 105M 119M 134M 156M 176M 201M 221M ++ for i in $(echo $curl_out) ++ [[ 14.3M =~ [0-9]+ ]] ++ [[ 14.3M != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n6\n1\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y612y +++ echo -E y612y +++ sed 's$/$_$g' ++ now_exec_f=y612y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y612y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n6\n1\n2\nn' 2 ++ local 'now_exec=y\n6\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n6\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n6\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y612n +++ echo -E y612n +++ sed 's$/$_$g' ++ now_exec_f=y612n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y612n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ for step in ${next_step[@]} ++ '[' 7 '!=' n ']' ++ recursion_run 'y\n7' 0 ++ local 'now_exec=y\n7' ++ local end_exec=0 ++ [[ 4 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ ruyi device provision ++ echo -e 'y\n7' ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-1) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-1)' ++ [[ (1-1) == \(\y\/\N\) ]] ++ [[ (1-1) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 1 ++ next_step=('1') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n7\n1' 0 ++ local 'now_exec=y\n7\n1' ++ local end_exec=0 ++ [[ 7 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n7\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Choice /tmp/ruyi_device/output +Choice? (1-7) +Choice? (1-1) +Choice? (1-2) Traceback (most recent call last): ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Choice +++ grep Choice /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(1-2)' ++ [[ (1-2) == \(\y\/\N\) ]] ++ [[ (1-2) =~ (1-.) ]] ++ result_item=($(seq ${output:0-2:1})) +++ seq 2 ++ next_step=('1' '2') ++ local next_step ++ for step in ${next_step[@]} ++ '[' 1 '!=' n ']' ++ recursion_run 'y\n7\n1\n1' 0 ++ local 'now_exec=y\n7\n1\n1' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n7\n1\n1' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n7\n1\n1\ny' y ++ local 'now_exec=y\n7\n1\n1\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n7\n1\n1\ny' ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 ++ ruyi device provision ++ tee +nohup: ignoring input ++ kill -9 4312 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ grep -A 20 Received +++ tail -15 +++ awk '{printf $4" "}' ++ curl_out='1855k 2687k 4400k 10.1M 17.2M 25.9M 37.6M 52.6M 71.5M 90.8M 120M 131M 140M 149M 159M ' +++ echo 1855k 2687k 4400k 10.1M 17.2M 25.9M 37.6M 52.6M 71.5M 90.8M 120M 131M 140M 149M 159M ++ for i in $(echo $curl_out) ++ [[ 1855k =~ [0-9]+ ]] ++ [[ 1855k != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n7\n1\n1\ny' +++ sed 's/\\n//g' ++ now_exec_f=y711y +++ echo -E y711y +++ sed 's$/$_$g' ++ now_exec_f=y711y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y711y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n7\n1\n1\nn' 2 ++ local 'now_exec=y\n7\n1\n1\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n7\n1\n1\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n7\n1\n1\nn' +++ sed 's/\\n//g' ++ now_exec_f=y711n +++ sed 's$/$_$g' +++ echo -E y711n ++ now_exec_f=y711n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y711n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ for step in ${next_step[@]} ++ '[' 2 '!=' n ']' ++ recursion_run 'y\n7\n1\n2' 0 ++ local 'now_exec=y\n7\n1\n2' ++ local end_exec=0 ++ [[ 10 -gt 100 ]] ++ [[ 0 == \y ]] ++ '[' '!' -z 0 ']' ++ '[' 0 '!=' 0 ']' ++ echo -e 'y\n7\n1\n2' ++ ruyi device provision ++ grep --line-buffered -Ev '^$|#' ++ grep 'Happy hacking!' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ ret=0 ++ grep 'failed to fetch distfile' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Proceed with flashing' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep 'Please give the path for the target'\''s whole disk' /tmp/ruyi_device/output ++ [[ 1 -eq 0 ]] ++ grep Proceed /tmp/ruyi_device/output +Proceed? (y/N) warn: EOF while reading user input, assuming the default choice NO ++ [[ 0 -eq 0 ]] ++ test_ouput /tmp/ruyi_device/output Proceed +++ grep Proceed /tmp/ruyi_device/output +++ awk '{print $2}' +++ tail -1 ++ output='(y/N)' ++ [[ (y/N) == \(\y\/\N\) ]] ++ result_item=('y' 'n') ++ next_step=('y' 'n') ++ local next_step ++ for step in ${next_step[@]} ++ '[' y = n ']' ++ '[' y = y ']' ++ recursion_run 'y\n7\n1\n2\ny' y ++ local 'now_exec=y\n7\n1\n2\ny' ++ local end_exec=y ++ [[ 13 -gt 100 ]] ++ [[ y == \y ]] ++ nohup echo -e 'y\n7\n1\n2\ny' ++ SLEEP_WAIT 1m ++ wait_time=1m ++ cmd= ++ mode=1 ++ python3 /root/ruyi-mugen/libs/locallibs/sleep_wait.py --time 1m --cmd '' --mode 1 +nohup: ignoring input ++ ruyi device provision ++ tee +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 4199 Done nohup echo -e "$now_exec" + 4200 Exit 120 | ruyi device provision 2>&1 + 4201 Killed | tee > /tmp/ruyi_device/output +/root/ruyi-mugen/libs/locallibs/common_lib_python.sh: line 180: 4310 Done nohup echo -e "$now_exec" + 4311 Exit 120 | ruyi device provision 2>&1 + 4312 Killed | tee > /tmp/ruyi_device/output ++ kill -9 4386 ++ sed 's/\x0D/\n/g' /tmp/ruyi_device/output ++ happy=n ++ grep -A 20 'Saving to' /tmp/ruyi_device/output_e ++ grep '\[=' ++ '[' n = n ']' +++ grep -A 20 Total /tmp/ruyi_device/output_e +++ tail -15 +++ grep -A 20 Received +++ awk '{printf $4" "}' ++ curl_out='8279k 13.9M 20.7M 28.5M 37.5M 47.5M 59.0M 74.0M 98.8M 118M 138M 157M 183M 203M 223M ' +++ echo 8279k 13.9M 20.7M 28.5M 37.5M 47.5M 59.0M 74.0M 98.8M 118M 138M 157M 183M 203M 223M ++ for i in $(echo $curl_out) ++ [[ 8279k =~ [0-9]+ ]] ++ [[ 8279k != \0 ]] ++ echo -e '\nHappy hacking! 0 0' ++ happy=y ++ break ++ '[' y = n ']' ++ rm -f /tmp/ruyi_device/output_e ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 0 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n7\n1\n2\ny' +++ sed 's/\\n//g' ++ now_exec_f=y712y +++ echo -E y712y +++ sed 's$/$_$g' ++ now_exec_f=y712y ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y712y ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ for step in ${next_step[@]} ++ '[' n = n ']' ++ recursion_run 'y\n7\n1\n2\nn' 2 ++ local 'now_exec=y\n7\n1\n2\nn' ++ local end_exec=2 ++ [[ 13 -gt 100 ]] ++ [[ 2 == \y ]] ++ '[' '!' -z 2 ']' ++ '[' 2 '!=' 0 ']' ++ echo -e 'y\n7\n1\n2\nn' ++ ruyi device provision ++ ret=1 +++ expr 2 - 1 ++ echo -e '\nHappy hacking! 1 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 1 1 ++ [[ 0 -eq 0 ]] +++ echo -E 'y\n7\n1\n2\nn' +++ sed 's/\\n//g' ++ now_exec_f=y712n +++ echo -E y712n +++ sed 's$/$_$g' ++ now_exec_f=y712n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_y712n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 ++ '[' n = y ']' ++ return 1 +++ expr 1 + 1 ++ ret=2 ++ return 2 +++ expr 2 + 2 ++ ret=4 ++ return 4 +++ expr 4 + 4 ++ ret=8 ++ return 8 +++ expr 8 + 8 ++ ret=16 ++ for step in ${next_step[@]} ++ '[' n '!=' n ']' ++ recursion_run n 1 ++ local now_exec=n ++ local end_exec=1 ++ [[ 1 -gt 100 ]] ++ [[ 1 == \y ]] ++ '[' '!' -z 1 ']' ++ '[' 1 '!=' 0 ']' ++ echo -e n ++ ruyi device provision ++ ret=1 +++ expr 1 - 1 ++ echo -e '\nHappy hacking! 0 1' ++ grep 'Happy hacking!' /tmp/ruyi_device/output +Happy hacking! 0 1 ++ [[ 0 -eq 0 ]] +++ echo -E n +++ sed 's/\\n//g' ++ now_exec_f=n +++ echo -E n +++ sed 's$/$_$g' ++ now_exec_f=n ++ mv /tmp/ruyi_device/output /tmp/ruyi_device/output_n ++ rm /tmp/ruyi_device/output +rm: cannot remove '/tmp/ruyi_device/output': No such file or directory +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi ++ rm -rf '/root/.cache//ruyi/distfiles/*' +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi ++ rm -rf '/root/.local/share/ruyi/blobs/*' ++ return 0 +++ expr 1 + 0 ++ ret=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check recursion run failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check recursion run failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check recursion run failed' ++ LOG_ERROR 'Check recursion run failed' ++ message='Check recursion run failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check recursion run failed' +Sun Feb 4 14:28:45 2024 - ERROR - Check recursion run failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 38' ++ message='ruyi_test_device.sh line 38' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 38' +Sun Feb 4 14:28:45 2024 - ERROR - ruyi_test_device.sh line 38 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ls_output=($(ls /tmp/ruyi_device/output*)) +++ ls /tmp/ruyi_device/output_n /tmp/ruyi_device/output_y111n /tmp/ruyi_device/output_y111y /tmp/ruyi_device/output_y112n /tmp/ruyi_device/output_y112y /tmp/ruyi_device/output_y211n /tmp/ruyi_device/output_y211y /tmp/ruyi_device/output_y212n /tmp/ruyi_device/output_y212y /tmp/ruyi_device/output_y221n /tmp/ruyi_device/output_y221y /tmp/ruyi_device/output_y222n /tmp/ruyi_device/output_y222y /tmp/ruyi_device/output_y311n /tmp/ruyi_device/output_y311y /tmp/ruyi_device/output_y312n /tmp/ruyi_device/output_y312y /tmp/ruyi_device/output_y313n /tmp/ruyi_device/output_y313y /tmp/ruyi_device/output_y321n /tmp/ruyi_device/output_y321y /tmp/ruyi_device/output_y322n /tmp/ruyi_device/output_y322y /tmp/ruyi_device/output_y331n /tmp/ruyi_device/output_y331y /tmp/ruyi_device/output_y332n /tmp/ruyi_device/output_y332y /tmp/ruyi_device/output_y411n /tmp/ruyi_device/output_y411y /tmp/ruyi_device/output_y412n /tmp/ruyi_device/output_y412y /tmp/ruyi_device/output_y511n /tmp/ruyi_device/output_y511y /tmp/ruyi_device/output_y512n /tmp/ruyi_device/output_y512y /tmp/ruyi_device/output_y513n /tmp/ruyi_device/output_y513y /tmp/ruyi_device/output_y521n /tmp/ruyi_device/output_y521y /tmp/ruyi_device/output_y522n /tmp/ruyi_device/output_y522y /tmp/ruyi_device/output_y523n /tmp/ruyi_device/output_y523y /tmp/ruyi_device/output_y611n /tmp/ruyi_device/output_y611y /tmp/ruyi_device/output_y612n /tmp/ruyi_device/output_y612y /tmp/ruyi_device/output_y711n /tmp/ruyi_device/output_y711y /tmp/ruyi_device/output_y712n /tmp/ruyi_device/output_y712y ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_n ++ file=/tmp/ruyi_device/output_n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_n ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_n failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_n failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_n failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_n failed' ++ message='Check file /tmp/ruyi_device/output_n failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_n failed' +Sun Feb 4 14:28:45 2024 - ERROR - Check file /tmp/ruyi_device/output_n failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:46 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y111n ++ file=/tmp/ruyi_device/output_y111n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y111n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y111n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y111n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y111y ++ file=/tmp/ruyi_device/output_y111y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y111y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y111y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y111y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y112n ++ file=/tmp/ruyi_device/output_y112n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y112n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y112n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y112n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y112y ++ file=/tmp/ruyi_device/output_y112y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y112y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y112y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y112y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y211n ++ file=/tmp/ruyi_device/output_y211n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y211n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y211n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y211n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y211y ++ file=/tmp/ruyi_device/output_y211y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y211y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ awk '{print $3}' +++ echo Happy 'hacking!' 0 0 ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y211y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y211y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y212n ++ file=/tmp/ruyi_device/output_y212n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y212n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y212n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y212n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y212y ++ file=/tmp/ruyi_device/output_y212y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y212y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y212y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y212y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y221n ++ file=/tmp/ruyi_device/output_y221n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y221n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y221n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y221n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y221y ++ file=/tmp/ruyi_device/output_y221y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y221y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y221y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y221y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y221y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y221y failed' ++ message='Check file /tmp/ruyi_device/output_y221y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y221y failed' +Sun Feb 4 14:28:46 2024 - ERROR - Check file /tmp/ruyi_device/output_y221y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:46 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y222n ++ file=/tmp/ruyi_device/output_y222n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y222n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y222n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y222n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y222y ++ file=/tmp/ruyi_device/output_y222y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y222y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y222y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y222y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y222y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y222y failed' ++ message='Check file /tmp/ruyi_device/output_y222y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y222y failed' +Sun Feb 4 14:28:47 2024 - ERROR - Check file /tmp/ruyi_device/output_y222y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:47 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y311n ++ file=/tmp/ruyi_device/output_y311n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y311n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y311n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y311n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y311y ++ file=/tmp/ruyi_device/output_y311y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y311y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y311y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y311y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y312n ++ file=/tmp/ruyi_device/output_y312n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y312n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y312n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y312n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y312y ++ file=/tmp/ruyi_device/output_y312y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y312y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ awk '{print $3}' +++ echo Happy 'hacking!' 0 0 ++ ret_e=0 +++ awk '{print $4}' +++ echo Happy 'hacking!' 0 0 ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y312y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y312y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y313n ++ file=/tmp/ruyi_device/output_y313n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y313n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y313n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y313n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y313y ++ file=/tmp/ruyi_device/output_y313y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y313y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y313y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y313y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y321n ++ file=/tmp/ruyi_device/output_y321n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y321n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y321n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y321n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y321y ++ file=/tmp/ruyi_device/output_y321y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y321y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y321y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y321y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y321y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y321y failed' ++ message='Check file /tmp/ruyi_device/output_y321y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y321y failed' +Sun Feb 4 14:28:47 2024 - ERROR - Check file /tmp/ruyi_device/output_y321y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:48 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y322n ++ file=/tmp/ruyi_device/output_y322n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y322n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y322n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y322n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y322y ++ file=/tmp/ruyi_device/output_y322y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y322y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y322y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y322y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y322y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y322y failed' ++ message='Check file /tmp/ruyi_device/output_y322y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y322y failed' +Sun Feb 4 14:28:48 2024 - ERROR - Check file /tmp/ruyi_device/output_y322y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:48 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y331n ++ file=/tmp/ruyi_device/output_y331n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y331n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y331n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y331n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y331y ++ file=/tmp/ruyi_device/output_y331y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y331y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y331y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y331y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y331y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y331y failed' ++ message='Check file /tmp/ruyi_device/output_y331y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y331y failed' +Sun Feb 4 14:28:48 2024 - ERROR - Check file /tmp/ruyi_device/output_y331y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:49 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y332n ++ file=/tmp/ruyi_device/output_y332n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y332n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y332n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y332n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y332y ++ file=/tmp/ruyi_device/output_y332y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y332y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y332y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y332y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y332y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y332y failed' ++ message='Check file /tmp/ruyi_device/output_y332y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y332y failed' +Sun Feb 4 14:28:49 2024 - ERROR - Check file /tmp/ruyi_device/output_y332y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:49 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y411n ++ file=/tmp/ruyi_device/output_y411n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y411n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y411n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y411n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y411y ++ file=/tmp/ruyi_device/output_y411y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y411y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y411y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y411y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y411y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y411y failed' ++ message='Check file /tmp/ruyi_device/output_y411y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y411y failed' +Sun Feb 4 14:28:50 2024 - ERROR - Check file /tmp/ruyi_device/output_y411y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:50 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y412n ++ file=/tmp/ruyi_device/output_y412n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y412n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y412n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y412n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y412y ++ file=/tmp/ruyi_device/output_y412y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y412y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y412y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y412y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y412y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y412y failed' ++ message='Check file /tmp/ruyi_device/output_y412y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y412y failed' +Sun Feb 4 14:28:50 2024 - ERROR - Check file /tmp/ruyi_device/output_y412y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:50 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y511n ++ file=/tmp/ruyi_device/output_y511n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y511n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y511n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y511n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y511y ++ file=/tmp/ruyi_device/output_y511y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y511y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y511y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y511y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y512n ++ file=/tmp/ruyi_device/output_y512n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y512n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y512n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y512n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y512y ++ file=/tmp/ruyi_device/output_y512y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y512y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y512y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y512y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y513n ++ file=/tmp/ruyi_device/output_y513n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y513n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ awk '{print $4}' +++ echo Happy 'hacking!' 1 1 ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y513n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y513n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y513y ++ file=/tmp/ruyi_device/output_y513y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y513y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ awk '{print $3}' +++ echo Happy 'hacking!' 0 0 ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y513y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y513y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y521n ++ file=/tmp/ruyi_device/output_y521n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y521n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y521n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y521n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y521y ++ file=/tmp/ruyi_device/output_y521y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y521y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y521y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y521y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y521y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y521y failed' ++ message='Check file /tmp/ruyi_device/output_y521y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y521y failed' +Sun Feb 4 14:28:51 2024 - ERROR - Check file /tmp/ruyi_device/output_y521y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:51 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y522n ++ file=/tmp/ruyi_device/output_y522n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y522n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y522n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y522n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y522y ++ file=/tmp/ruyi_device/output_y522y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y522y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y522y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y522y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y522y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y522y failed' ++ message='Check file /tmp/ruyi_device/output_y522y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y522y failed' +Sun Feb 4 14:28:51 2024 - ERROR - Check file /tmp/ruyi_device/output_y522y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:52 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y523n ++ file=/tmp/ruyi_device/output_y523n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y523n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y523n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y523n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y523y ++ file=/tmp/ruyi_device/output_y523y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y523y ++ ret='Happy hacking! 0 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 0 = 0 ']' ++ '[' 1 = 0 ']' ++ '[' 0 '!=' 0 ']' +++ expr 0 + 1 ++ res=1 ++ return 1 ++ CHECK_RESULT 1 0 0 'Check file /tmp/ruyi_device/output_y523y failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y523y failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check file /tmp/ruyi_device/output_y523y failed' ++ LOG_ERROR 'Check file /tmp/ruyi_device/output_y523y failed' ++ message='Check file /tmp/ruyi_device/output_y523y failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check file /tmp/ruyi_device/output_y523y failed' +Sun Feb 4 14:28:52 2024 - ERROR - Check file /tmp/ruyi_device/output_y523y failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_device.sh line 44' ++ message='ruyi_test_device.sh line 44' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_device.sh line 44' +Sun Feb 4 14:28:52 2024 - ERROR - ruyi_test_device.sh line 44 ++ '[' 0 -eq 1 ']' ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y611n ++ file=/tmp/ruyi_device/output_y611n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y611n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y611n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y611n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y611y ++ file=/tmp/ruyi_device/output_y611y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y611y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y611y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y611y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y612n ++ file=/tmp/ruyi_device/output_y612n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y612n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y612n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y612n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y612y ++ file=/tmp/ruyi_device/output_y612y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y612y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y612y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y612y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y711n ++ file=/tmp/ruyi_device/output_y711n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y711n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ awk '{print $4}' +++ echo Happy 'hacking!' 1 1 ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y711n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y711n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y711y ++ file=/tmp/ruyi_device/output_y711y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y711y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y711y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y711y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y712n ++ file=/tmp/ruyi_device/output_y712n ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y712n ++ ret='Happy hacking! 1 1' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $3}' ++ ret_e=1 +++ echo Happy 'hacking!' 1 1 +++ awk '{print $4}' ++ ret_g=1 ++ '[' 1 = 0 ']' ++ '[' 1 '!=' 0 ']' ++ '[' 1 '!=' 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y712n failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y712n failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ for file in ${ls_output[@]} ++ test_res /tmp/ruyi_device/output_y712y ++ file=/tmp/ruyi_device/output_y712y ++ res=0 +++ grep 'Happy hacking!' /tmp/ruyi_device/output_y712y ++ ret='Happy hacking! 0 0' +++ expr 0 + 0 ++ res=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $3}' ++ ret_e=0 +++ echo Happy 'hacking!' 0 0 +++ awk '{print $4}' ++ ret_g=0 ++ '[' 0 = 0 ']' ++ '[' 0 = 0 ']' +++ expr 0 + 0 ++ res=0 ++ return 0 ++ CHECK_RESULT 0 0 0 'Check file /tmp/ruyi_device/output_y712y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Check file /tmp/ruyi_device/output_y712y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ rm -rf /tmp/ruyi_device/test +++ date +%Y-%m-%d-%H:%M:%S ++ tar zcf /root/ruyi-mugen/logs/ruyi/ruyi_test_device/2024-02-04-14:28:53.tar.gz /tmp/ruyi_device +tar: Removing leading `/' from member names ++ CHECK_RESULT 0 0 0 'Backup temp log file /tmp/ruyi_device/output_y712y failed' ++ actual_result=0 ++ expect_result=0 ++ mode=0 ++ error_log='Backup temp log file /tmp/ruyi_device/output_y712y failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 0 -eq 0 ']' ++ test 0x '!=' 0x ++ return 0 ++ LOG_INFO 'End of the test.' ++ message='End of the test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of the test.' +Sun Feb 4 14:28:53 2024 - INFO - End of the test. ++ CASE_RESULT 0 ++ case_re=0 ++ test -z 13 ++ test 13 -gt 0 ++ LOG_ERROR 'failed to execute the case.' ++ message='failed to execute the case.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'failed to execute the case.' +Sun Feb 4 14:28:53 2024 - ERROR - failed to execute the case. ++ exit 13 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Sun Feb 4 14:28:53 2024 - INFO - start environment cleanup. ++ rm -rf /tmp/ruyi_device ++ remove_ruyi ++ PKG_REMOVE ++ node=1 ++ pkg_list= ++ mode=0 ++ [[ -z /tmp/tmpna0cfsbl ]] ++ '[' 0 -ne 0 ']' ++ '[' 1 == 0 ']' ++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmpna0cfsbl ++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmpna0cfsbl +Sun Feb 4 14:29:00 2024 - INFO - unsupported package manager: apt-get +(0, None) ++ '[' 0 -ne 0 ']' ++ remove_ruyi_data +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi +++ get_ruyi_state_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/state +++ echo /root/.local/state/ruyi ++ rm -rf /root/.cache//ruyi /root/.local/share/ruyi /root/.local/state/ruyi ++ rm -f ruyi ++ rm -f /usr/bin/ruyi ++ export RUYI_DEBUG= ++ RUYI_DEBUG= ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Sun Feb 4 14:29:14 2024 - INFO - Finish environment cleanup! diff --git a/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_device/2024-02-04-14_28_53.tar.gz b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_device/2024-02-04-14_28_53.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..377b82c2178c6fb0815c438fc053df03868bf180 Binary files /dev/null and b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_device/2024-02-04-14_28_53.tar.gz differ diff --git a/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_llvm/2024-02-04-14_36_15.log b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_llvm/2024-02-04-14_36_15.log new file mode 100644 index 0000000000000000000000000000000000000000..3d369d01581c7816d45167a0c551a457be018dc9 --- /dev/null +++ b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_llvm/2024-02-04-14_36_15.log @@ -0,0 +1,155 @@ ++ source ./common/common_lib.sh +++ source /root/ruyi-mugen/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /root/ruyi-mugen/libs/locallibs/common_lib_python.sh ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Sun Feb 4 14:36:15 2024 - INFO - Start environmental preparation. ++ install_ruyi ++ DNF_INSTALL 'git tar bzip2 xz zstd unzip' ++ pkgs='git tar bzip2 xz zstd unzip' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py install --pkgs 'git tar bzip2 xz zstd unzip' --node 1 --tempfile '' ++ tmpfile2=/tmp/tmpb0voywcv ++ '[' -z '' ']' ++ tmpfile=/tmp/tmpb0voywcv ++ APT_INSTALL 'git tar bzip2 xz-utils zstd unzip' ++ pkgs='git tar bzip2 xz-utils zstd unzip' ++ node=1 ++ '[' -z /tmp/tmpb0voywcv ']' +++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py install --pkgs 'git tar bzip2 xz-utils zstd unzip' --node 1 --tempfile /tmp/tmpb0voywcv +Sun Feb 4 14:36:41 2024 - INFO - unsupported package manager: apt-get ++ tmpfile2= ++ '[' -z /tmp/tmpb0voywcv ']' ++ version=0.4.0 ++ arch=amd64 +++ uname -m ++ larch=riscv64 ++ '[' riscv64 == riscv64 ']' ++ arch=riscv64 ++ '[' riscv64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.4.0/ruyi.riscv64 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 14 10.4M 14 1537k 0 0 2245k 0 0:00:04 --:--:-- 0:00:04 2244k 100 10.4M 100 10.4M 0 0 7747k 0 0:00:01 0:00:01 --:--:-- 7755k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /root/ruyi-mugen/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Sun Feb 4 14:36:43 2024 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Sun Feb 4 14:36:43 2024 - INFO - Start to run test. ++ mkdir llvm_test ++ cd llvm_test ++ qemu_pkg=qemu-user-riscv-upstream ++ qemu_cmd='-e qemu-user-riscv-upstream' ++ qemu_bin=ruyi-qemu +++ uname -m ++ '[' riscv64 == riscv64 ']' ++ qemu_pkg= ++ qemu_cmd= ++ qemu_bin= ++ ruyi update +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/update_cli.py", line 14, in cli_update + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 64, in sync + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index +++ ruyi list +++ awk '/\* / {if (f==1) f=2} /./ {if (f==1) {print $0}} /\* toolchain\/llvm-upstream/ {if (f==0) f=1}' +++ grep -e '^ -' +++ grep -v 'no binary for current host' +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ pe= ++ '[' -z '' ']' +++ uname -m ++ LOG_INFO 'No llvm-upstream available for current host riscv64, skip' ++ message='No llvm-upstream available for current host riscv64, skip' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'No llvm-upstream available for current host riscv64, skip' +Sun Feb 4 14:39:08 2024 - INFO - No llvm-upstream available for current host riscv64, skip ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Sun Feb 4 14:39:08 2024 - INFO - start environment cleanup. ++ remove_ruyi ++ PKG_REMOVE ++ node=1 ++ pkg_list= ++ mode=0 ++ [[ -z /tmp/tmpb0voywcv ]] ++ '[' 0 -ne 0 ']' ++ '[' 1 == 0 ']' ++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmpb0voywcv ++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmpb0voywcv +Sun Feb 4 14:39:13 2024 - INFO - unsupported package manager: apt-get +(0, None) ++ '[' 0 -ne 0 ']' ++ remove_ruyi_data +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi +++ get_ruyi_state_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/state +++ echo /root/.local/state/ruyi ++ rm -rf /root/.cache//ruyi /root/.local/share/ruyi /root/.local/state/ruyi ++ rm -f ruyi ++ rm -f /usr/bin/ruyi ++ export RUYI_DEBUG= ++ RUYI_DEBUG= ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Sun Feb 4 14:39:13 2024 - INFO - Finish environment cleanup! diff --git a/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_news/2024-02-04-14_57_50.log b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_news/2024-02-04-14_57_50.log new file mode 100644 index 0000000000000000000000000000000000000000..dfe55a2f1afddf3a75182cc84fde334beb1c9ed7 --- /dev/null +++ b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_news/2024-02-04-14_57_50.log @@ -0,0 +1,194 @@ ++ source ./common/common_lib.sh +++ source /root/ruyi-mugen/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /root/ruyi-mugen/libs/locallibs/common_lib_python.sh ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Sun Feb 4 14:57:50 2024 - INFO - Start environmental preparation. ++ install_ruyi ++ DNF_INSTALL 'git tar bzip2 xz zstd unzip' ++ pkgs='git tar bzip2 xz zstd unzip' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py install --pkgs 'git tar bzip2 xz zstd unzip' --node 1 --tempfile '' ++ tmpfile2=/tmp/tmpzr6rzemk ++ '[' -z '' ']' ++ tmpfile=/tmp/tmpzr6rzemk ++ APT_INSTALL 'git tar bzip2 xz-utils zstd unzip' ++ pkgs='git tar bzip2 xz-utils zstd unzip' ++ node=1 ++ '[' -z /tmp/tmpzr6rzemk ']' +++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py install --pkgs 'git tar bzip2 xz-utils zstd unzip' --node 1 --tempfile /tmp/tmpzr6rzemk +Sun Feb 4 14:58:16 2024 - INFO - unsupported package manager: apt-get ++ tmpfile2= ++ '[' -z /tmp/tmpzr6rzemk ']' ++ version=0.4.0 ++ arch=amd64 +++ uname -m ++ larch=riscv64 ++ '[' riscv64 == riscv64 ']' ++ arch=riscv64 ++ '[' riscv64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.4.0/ruyi.riscv64 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 12 10.4M 12 1376k 0 0 2066k 0 0:00:05 --:--:-- 0:00:05 2064k 100 10.4M 100 10.4M 0 0 7029k 0 0:00:01 0:00:01 --:--:-- 7032k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /root/ruyi-mugen/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Sun Feb 4 14:58:18 2024 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Sun Feb 4 14:58:18 2024 - INFO - Start to run test. ++ ruyi update + Counting: 0%| | 0/498.0 [00:00 + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/update_cli.py", line 14, in cli_update + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 64, in sync + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index +++ ruyi list +++ awk '/\* / {if (f==1) f=2} /./ {if (f==1) {print $0}} /\* emulator\/qemu-user-riscv-upstream/ {if (f==0) f=1}' +++ grep -e '^ -' +++ grep -v 'no binary for current host' +Traceback (most recent call last): + File "/root/.cache/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi/packages-index ++ pe= ++ '[' -z '' ']' +++ uname -m ++ LOG_INFO 'No qemu-user-riscv-upstream available for current host riscv64, skip' ++ message='No qemu-user-riscv-upstream available for current host riscv64, skip' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'No qemu-user-riscv-upstream available for current host riscv64, skip' +Sun Feb 4 14:43:14 2024 - INFO - No qemu-user-riscv-upstream available for current host riscv64, skip ++ exit 0 ++ post_test ++ LOG_INFO 'start environment cleanup.' ++ message='start environment cleanup.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.' +Sun Feb 4 14:43:14 2024 - INFO - start environment cleanup. ++ remove_ruyi ++ PKG_REMOVE ++ node=1 ++ pkg_list= ++ mode=0 ++ [[ -z /tmp/tmphe1f5e6t ]] ++ '[' 0 -ne 0 ']' ++ '[' 1 == 0 ']' ++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmphe1f5e6t ++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmphe1f5e6t +Sun Feb 4 14:43:19 2024 - INFO - unsupported package manager: apt-get +(0, None) ++ '[' 0 -ne 0 ']' ++ remove_ruyi_data +++ get_ruyi_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.cache/ +++ echo /root/.cache//ruyi +++ get_ruyi_data_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/share +++ echo /root/.local/share/ruyi +++ get_ruyi_state_dir +++ ruyibase= +++ '[' '' == '' ']' +++ ruyibase=/root/.local/state +++ echo /root/.local/state/ruyi ++ rm -rf /root/.cache//ruyi /root/.local/share/ruyi /root/.local/state/ruyi ++ rm -f ruyi ++ rm -f /usr/bin/ruyi ++ export RUYI_DEBUG= ++ RUYI_DEBUG= ++ LOG_INFO 'Finish environment cleanup!' ++ message='Finish environment cleanup!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!' +Sun Feb 4 14:43:19 2024 - INFO - Finish environment cleanup! diff --git a/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_venv/2024-02-04-14_34_10.log b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_venv/2024-02-04-14_34_10.log new file mode 100644 index 0000000000000000000000000000000000000000..ad1221406b2a3ba14049ccae27c898fdf41dc5f3 --- /dev/null +++ b/20240130/logs/oE2309-riscv64-LPi4A/ruyi_test_venv/2024-02-04-14_34_10.log @@ -0,0 +1,230 @@ ++ source ./common/common_lib.sh +++ source /root/ruyi-mugen/libs/locallibs/common_lib.sh ++++ python3 --version ++++ '[' 0 -eq 0 ']' ++++ source /root/ruyi-mugen/libs/locallibs/common_lib_python.sh ++ main +++ type -t post_test ++ '[' -n function ']' ++ trap post_test EXIT INT HUP TERM +++ type -t config_params ++ '[' -n '' ']' +++ type -t pre_test ++ '[' -n function ']' ++ pre_test ++ LOG_INFO 'Start environmental preparation.' ++ message='Start environmental preparation.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.' +Sun Feb 4 14:34:11 2024 - INFO - Start environmental preparation. ++ install_ruyi ++ DNF_INSTALL 'git tar bzip2 xz zstd unzip' ++ pkgs='git tar bzip2 xz zstd unzip' ++ node=1 ++ '[' -z '' ']' ++ tmpfile= +++ python3 /root/ruyi-mugen/libs/locallibs/rpm_manage.py install --pkgs 'git tar bzip2 xz zstd unzip' --node 1 --tempfile '' ++ tmpfile2=/tmp/tmpee0t0tt5 ++ '[' -z '' ']' ++ tmpfile=/tmp/tmpee0t0tt5 ++ APT_INSTALL 'git tar bzip2 xz-utils zstd unzip' ++ pkgs='git tar bzip2 xz-utils zstd unzip' ++ node=1 ++ '[' -z /tmp/tmpee0t0tt5 ']' +++ python3 /root/ruyi-mugen/libs/locallibs/deb_manage.py install --pkgs 'git tar bzip2 xz-utils zstd unzip' --node 1 --tempfile /tmp/tmpee0t0tt5 +Sun Feb 4 14:34:37 2024 - INFO - unsupported package manager: apt-get ++ tmpfile2= ++ '[' -z /tmp/tmpee0t0tt5 ']' ++ version=0.4.0 ++ arch=amd64 +++ uname -m ++ larch=riscv64 ++ '[' riscv64 == riscv64 ']' ++ arch=riscv64 ++ '[' riscv64 == aarch64 ']' ++ curl -L -o ruyi https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.4.0/ruyi.riscv64 + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 18 10.4M 18 1942k 0 0 2864k 0 0:00:03 --:--:-- 0:00:03 2865k 100 10.4M 100 10.4M 0 0 8469k 0 0:00:01 0:00:01 --:--:-- 8472k ++ chmod +x ruyi +++ realpath ruyi ++ ln -s /root/ruyi-mugen/testcases/cli-test/ruyi/ruyi /usr/bin/ruyi ++ LOG_INFO 'End of environmental preparation!' ++ message='End of environmental preparation!' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!' +Sun Feb 4 14:34:39 2024 - INFO - End of environmental preparation! +++ type -t run_test ++ '[' -n function ']' ++ run_test ++ LOG_INFO 'Start to run test.' ++ message='Start to run test.' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.' +Sun Feb 4 14:34:39 2024 - INFO - Start to run test. ++ ruyi update + Counting: 0%| | 0/498.0 [00:00 + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi_mugen_test/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi empty list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi empty list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi empty list failed' ++ LOG_ERROR 'Check ruyi empty list failed' ++ message='Check ruyi empty list failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi empty list failed' +Sun Feb 4 14:46:02 2024 - ERROR - Check ruyi empty list failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_xdg.sh line 41' ++ message='ruyi_test_xdg.sh line 41' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_xdg.sh line 41' +Sun Feb 4 14:46:02 2024 - ERROR - ruyi_test_xdg.sh line 41 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi update +Traceback (most recent call last): + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/update_cli.py", line 14, in cli_update + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 64, in sync + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi_mugen_test/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi update failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi update failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi update failed' ++ LOG_ERROR 'Check ruyi update failed' ++ message='Check ruyi update failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi update failed' +Sun Feb 4 14:48:15 2024 - ERROR - Check ruyi update failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_xdg.sh line 43' ++ message='ruyi_test_xdg.sh line 43' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_xdg.sh line 43' +Sun Feb 4 14:48:15 2024 - ERROR - ruyi_test_xdg.sh line 43 ++ '[' 0 -eq 1 ']' ++ return 0 +++ ruyi list +++ grep -e '^* ' +++ wc -l +Traceback (most recent call last): + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi_mugen_test/ruyi/packages-index ++ pkgcnt=0 ++ CHECK_RESULT 0 0 1 'Check ruyi list failed' ++ actual_result=0 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi list failed' ++ exit_mode=0 ++ '[' -z 0 ']' ++ '[' 1 -eq 0 ']' ++ test 0x == 0x ++ test -n 'Check ruyi list failed' ++ LOG_ERROR 'Check ruyi list failed' ++ message='Check ruyi list failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list failed' +Sun Feb 4 14:49:33 2024 - ERROR - Check ruyi list failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_xdg.sh line 45' ++ message='ruyi_test_xdg.sh line 45' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_xdg.sh line 45' +Sun Feb 4 14:49:33 2024 - ERROR - ruyi_test_xdg.sh line 45 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list ++ grep 'Package declares' +Traceback (most recent call last): + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 27, in cli_list + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 45, in do_list_non_verbose + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi_mugen_test/ruyi/packages-index ++ CHECK_RESULT 1 0 1 'Check ruyi brief list failed' ++ actual_result=1 ++ expect_result=0 ++ mode=1 ++ error_log='Check ruyi brief list failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 1 -eq 0 ']' ++ test 1x == 0x ++ return 0 ++ ruyi list --verbose ++ grep 'Package declares' +Traceback (most recent call last): + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 30, in cli_list + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi_mugen_test/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi list verbose package failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose package failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi list verbose package failed' ++ LOG_ERROR 'Check ruyi list verbose package failed' ++ message='Check ruyi list verbose package failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list verbose package failed' +Sun Feb 4 14:53:59 2024 - ERROR - Check ruyi list verbose package failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_xdg.sh line 49' ++ message='ruyi_test_xdg.sh line 49' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_xdg.sh line 49' +Sun Feb 4 14:53:59 2024 - ERROR - ruyi_test_xdg.sh line 49 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list --verbose ++ grep 'Binary artifacts' +Traceback (most recent call last): + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/__main__.py", line 30, in + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/cli/__init__.py", line 293, in main + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/pkg_cli.py", line 30, in cli_list + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 175, in iter_pkgs + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 150, in ensure_pkg_cache + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/ruyi/ruyipkg/repo.py", line 54, in ensure_git_repo + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1405, in clone_from + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/repo/base.py", line 1289, in _clone + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 208, in handle_process_output + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/util.py", line 483, in finalize_process + File "/root/.cache/ruyi_mugen_test/ruyi/progcache/0.4.0/git/cmd.py", line 657, in wait +git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) + cmdline: git clone -v --branch=main --progress -- https://github.com/ruyisdk/packages-index.git /root/.cache/ruyi_mugen_test/ruyi/packages-index ++ CHECK_RESULT 1 0 0 'Check ruyi list verbose artifacts failed' ++ actual_result=1 ++ expect_result=0 ++ mode=0 ++ error_log='Check ruyi list verbose artifacts failed' ++ exit_mode=0 ++ '[' -z 1 ']' ++ '[' 0 -eq 0 ']' ++ test 1x '!=' 0x ++ test -n 'Check ruyi list verbose artifacts failed' ++ LOG_ERROR 'Check ruyi list verbose artifacts failed' ++ message='Check ruyi list verbose artifacts failed' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'Check ruyi list verbose artifacts failed' +Sun Feb 4 14:56:12 2024 - ERROR - Check ruyi list verbose artifacts failed ++ (( exec_result++ )) ++ LOG_ERROR 'ruyi_test_xdg.sh line 51' ++ message='ruyi_test_xdg.sh line 51' ++ python3 /root/ruyi-mugen/libs/locallibs/mugen_log.py --level error --message 'ruyi_test_xdg.sh line 51' +Sun Feb 4 14:56:12 2024 - ERROR - ruyi_test_xdg.sh line 51 ++ '[' 0 -eq 1 ']' ++ return 0 ++ ruyi list --verbose ++ grep 'Toolchain metadata' + Counting: 0%| | 0/498.0 [00:00 若系统未安装 `git`,需要先行安装:`dnf install -y git` + +2. 安装依赖包:`cd mugen-ruyi && bash dep_install.sh` + +3. 配置 `mugen`: + +openEuler 23.09: `bash mugen.sh -c --ip 127.0.0.1 --password 'openEuler12#$' --user root --port 22` + +4. 执行 `ruyi` 测试套:`bash mugen.sh -f ruyi` + +5. 执行结束后,对 log 文件名进行处理(避免 Windows 用户无法 checkout 仓库): + +```bash +for file in $(find ./logs -name "*:*"); do mv "$file" "${file//:/_}"; done +``` + +### 测试结果 + +共测试了 1 个测试套,10 个测试用例,2个测试用例失败,8个测试用例成功。 + + + +### 测试用例列表 + +| 测试套/软件包名 | 测试用例名 | 测试内容 | +| :-------------: | :----------------------: | :-----------------------------------------: | +| ruyi | ruyi\_test\_common | 基本命令测试 | +| | ruyi\_test\_xdg | ``XDG_*_HOME`` 环境变量测试 | +| | ruyi\_test\_venv | ``venv`` 命令测试 | +| | ruyi\_test\_admin | ``admin`` 命令测试 | +| | ruyi\_test\_cmake\_ninja | ``make`` 、 ``cmake`` 、 ``ninja`` 构建测试 | +| | ruyi\_test\_qemu | QEMU 支持测试 | +| | ruyi\_test\_xthead\_qemu | 平头哥 QEMU 支持测试 | +| | ruyi\_test\_llvm | LLVM 支持测试 | +| | ruyi\_test\_news | ``news`` 命令测试 | +| | ruyi\_test\_device | ``device`` 命令测试 | + + +### 失败用例列表 + +| 测试环境 | 测试用例名 | 状态 | 日志文件 | 原因 | +| :-: | :-: | :-: | :-: | :-: | +| OpenEuler | ruyi\_test\_device | failed | [log](/20240116/logs/oE2309-risdv64-LPi4A/ruyi_test_device) | | +| OpenEuler | ruyi\_test\_xdg | failed | [log](/20240116/logs/oE2309-risdv64-LPi4A/ruyi_test_xdg) | | + +### 其他信息 + +详细日志见 [oE2309-riscv64-lpi4a](/20240116/logs/oE2309-riscv64-LPi4A/) 目录。 + diff --git a/20240130/oERV2309-VisionFive2.md b/20240130/oERV2309-VisionFive2.md new file mode 100644 index 0000000000000000000000000000000000000000..04c47bd96d3587f90b9345ae7a66ada12121f061 --- /dev/null +++ b/20240130/oERV2309-VisionFive2.md @@ -0,0 +1,109 @@ +# RUYI 包管理 0.4.0 版本 SG2042 openEuler RISC-V 测试结果 + +本次测试基于 RUYI 0.4.0 版本预编译的 riscv64 架构版本二进制 [ruyi.riscv64](https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.4.0/ruyi.riscv64) 。 + +编写了 mugen 测试用例,在 openEuler 23.09 RISC-V preview V1(VisionFive 2) 开展测试。 + +## mugen 测试 + +### 测试环境说明 + ++ 由于 mugen 本身依赖 expect、psmisc、ping、make、python3、python3-paramiko、python3-six,故 mugen 自动化测试不能测试 RUYI 对这些软件包的依赖。 ++ 由于 mugen 自身的特性,测试用例运行的顺序是随机的。 ++ 测试环境为 openEuler 23.09 RISC-V preview V1(VisionFive 2) 。 + +### 测试执行 + +0. 以 `root` 用户身份登录系统。 + +1. 获取 mugen-ruyi 测试套:`git clone --depth=1 https://github.com/weilinfox/ruyi-mugen` + +> 若系统未安装 `git`,需要先行安装:`dnf install -y git` + +2. 安装依赖包:`cd mugen-ruyi && bash dep_install.sh` + +3. 配置 `mugen`: + +openEuler 23.09: `bash mugen.sh -c --ip 127.0.0.1 --password 'openEuler12#$' --user root --port 22` + +4. 执行 `ruyi` 测试套:`bash mugen.sh -f ruyi` + +5. 执行结束后,对 log 文件名进行处理(避免 Windows 用户无法 checkout 仓库): + +```bash +for file in $(find ./logs -name "*:*"); do mv "$file" "${file//:/_}"; done +``` + +### 测试结果 + +共测试了 1 个测试套,10 个测试用例,在 openEuler 23.09 RISC-V preview V1 SG2042 上全部测试成功。 + +openEuler 23.09 RISC-V preview V1: + +```log +[root@openeuler-riscv64 ruyi-mugen]# bash mugen.sh -f ruyi +Fri Feb 2 13:14:12 2024 - INFO - start to run testcase:ruyi_test_common. +Fri Feb 2 13:23:52 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:23:52 2024 - INFO - End to run testcase:ruyi_test_common. +Fri Feb 2 13:23:53 2024 - INFO - start to run testcase:ruyi_test_news. +Fri Feb 2 13:24:43 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:24:43 2024 - INFO - End to run testcase:ruyi_test_news. +Fri Feb 2 13:24:43 2024 - INFO - start to run testcase:ruyi_test_llvm. +Fri Feb 2 13:25:21 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:25:21 2024 - INFO - End to run testcase:ruyi_test_llvm. +Fri Feb 2 13:25:21 2024 - INFO - start to run testcase:ruyi_test_admin. +Fri Feb 2 13:25:55 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:25:55 2024 - INFO - End to run testcase:ruyi_test_admin. +Fri Feb 2 13:25:55 2024 - INFO - start to run testcase:ruyi_test_cmake_ninja. +Fri Feb 2 13:53:04 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:53:05 2024 - INFO - End to run testcase:ruyi_test_cmake_ninja. +Fri Feb 2 13:53:05 2024 - INFO - start to run testcase:ruyi_test_qemu. +Fri Feb 2 13:53:42 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:53:42 2024 - INFO - End to run testcase:ruyi_test_qemu. +Fri Feb 2 13:53:43 2024 - INFO - start to run testcase:ruyi_test_xthead_qemu. +Fri Feb 2 13:54:14 2024 - INFO - The case exit by code 0. +Fri Feb 2 13:54:14 2024 - INFO - End to run testcase:ruyi_test_xthead_qemu. +Fri Feb 2 13:54:15 2024 - INFO - start to run testcase:ruyi_test_xdg. +Fri Feb 2 14:02:56 2024 - INFO - The case exit by code 0. +Fri Feb 2 14:02:56 2024 - INFO - End to run testcase:ruyi_test_xdg. +Fri Feb 2 14:02:56 2024 - INFO - start to run testcase:ruyi_test_venv. +Fri Feb 2 14:13:09 2024 - INFO - The case exit by code 0. +Fri Feb 2 14:13:09 2024 - INFO - End to run testcase:ruyi_test_venv. +Fri Feb 2 14:13:09 2024 - INFO - start to run testcase:ruyi_test_device. +Fri Feb 2 14:41:03 2024 - INFO - The case exit by code 0. +Fri Feb 2 14:41:03 2024 - INFO - End to run testcase:ruyi_test_device. +Fri Feb 2 14:41:04 2024 - INFO - A total of 10 use cases were executed, with 10 successes and 0 failures. +``` + +### 测试结论 + +共测试了 1 个测试套,10 个测试用例,4个测试用例失败,6个测试用例成功。 + +### 测试用例列表 + +| 测试套/软件包名 | 测试用例名 | 测试内容 | +|:---------------:|:------------------------:|:-------------------------------------:| +| ruyi | ruyi\_test\_common | 基本命令测试 | +| | ruyi\_test\_xdg | ``XDG_*_HOME`` 环境变量测试 | +| | ruyi\_test\_venv | ``venv`` 命令测试 | +| | ruyi\_test\_admin | ``admin`` 命令测试 | +| | ruyi\_test\_cmake\_ninja | ``make`` 、 ``cmake`` 、 ``ninja`` 构建测试 | +| | ruyi\_test\_qemu | QEMU 支持测试 | +| | ruyi\_test\_xthead\_qemu | 平头哥 QEMU 支持测试 | +| | ruyi\_test\_llvm | LLVM 支持测试 | +| | ruyi\_test\_news | ``news`` 命令测试 | +| | ruyi\_test\_device | ``device`` 命令测试 | + + +### 失败用例列表 + +| 测试环境 | 测试用例名 | 状态 | 日志文件 | 原因 | +| :-: | :-: | :-: | :-: | :-: | +| | ruyi\_test\_device | failed | [log](/20240116/logs/oE2309-riscv64-VisionFive2/) | | +| | ruyi_test_common | failed | [log](/20240116/logs/oE2309-riscv64-VisionFive2/) | | +| | ruyi\_test\_cmake\_ninja | failed | [log](/20240116/logs/oE2309-riscv64-VisionFive2/) | | +| | ruyi\_test\_xdg | failed | [log](/20240116/logs/oE2309-riscv64-VisionFive2/) | | + +### 其他信息 + +详细日志见 [oE2309-riscv64-VisionFive2](/20240130/logs/oE2309-riscv64-VisionFive2/) 目录。 \ No newline at end of file