Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新 os-basic 测试 #43

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+ source /root/mugen-riscv/libs/locallibs/common_lib.sh
+ source /root/mugen/libs/locallibs/common_lib.sh
++ python3 --version
++ '[' 0 -eq 0 ']'
++ source /root/mugen-riscv/libs/locallibs/common_lib_python.sh
++ source /root/mugen/libs/locallibs/common_lib_python.sh
+ main
++ type -t post_test
+ '[' -n function ']'
Expand All @@ -15,8 +15,8 @@
+ pre_test
+ LOG_INFO 'Start to prepare the test environment.'
+ message='Start to prepare the test environment.'
+ python3 /root/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'Start to prepare the test environment.'
Fri Sep 1 12:27:12 2023 - INFO - Start to prepare the test environment.
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to prepare the test environment.'
Tue Sep 5 14:00:23 2023 - INFO - Start to prepare the test environment.
+ useradd ace
+ useradd uos1
+ echo 'ace:deepin12#$'
Expand All @@ -26,15 +26,15 @@ Fri Sep 1 12:27:12 2023 - INFO - Start to prepare the test environment.
+ chmod 755 /home/uos1
+ LOG_INFO 'End to prepare the test environment.'
+ message='End to prepare the test environment.'
+ python3 /root/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'End to prepare the test environment.'
Fri Sep 1 12:27:13 2023 - INFO - End to prepare the test environment.
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to prepare the test environment.'
Tue Sep 5 14:00:40 2023 - INFO - End to prepare the test environment.
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'start to run test.'
+ message='start to run test.'
+ python3 /root/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'start to run test.'
Fri Sep 1 12:27:14 2023 - INFO - start to run test.
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'start to run test.'
Tue Sep 5 14:00:41 2023 - INFO - start to run test.
+ su - uos1 -c 'mkdir /home/uos1/test115216'
+ su - uos1 -c 'chmod 000 /home/uos1/test115216'
+ su - uos1 -c 'cd /home/uos1/test115216'
Expand All @@ -44,6 +44,7 @@ Fri Sep 1 12:27:14 2023 - INFO - start to run test.
+ expect_result=0
+ mode=1
+ error_log='uos can not access dir test115216,please modify'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 1 -eq 0 ']'
+ test 1x == 0x
Expand All @@ -54,6 +55,7 @@ Fri Sep 1 12:27:14 2023 - INFO - start to run test.
+ expect_result=0
+ mode=0
+ error_log='setfacl set fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
Expand All @@ -64,32 +66,33 @@ Fri Sep 1 12:27:14 2023 - INFO - start to run test.
+ expect_result=0
+ mode=0
+ error_log='ace don'\''t access test115216'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ LOG_INFO 'End to run test.'
+ message='End to run test.'
+ python3 /root/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'End to run test.'
Fri Sep 1 12:27:20 2023 - INFO - End to run test.
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to run test.'
Tue Sep 5 14:00:51 2023 - INFO - End to run 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/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.'
Fri Sep 1 12:27:21 2023 - INFO - succeed to execute the case.
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.'
Tue Sep 5 14:00:51 2023 - INFO - succeed to execute the case.
+ exec_result=
+ exit 0
+ post_test
+ LOG_INFO 'start environment cleanup.'
+ message='start environment cleanup.'
+ python3 /root/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.'
Fri Sep 1 12:27:21 2023 - INFO - start environment cleanup.
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.'
Tue Sep 5 14:00:52 2023 - INFO - start environment cleanup.
+ userdel -rf ace
+ userdel -rf uos1
+ LOG_INFO 'Finish environment cleanup!'
+ message='Finish environment cleanup!'
+ python3 /root/mugen-riscv/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!'
Fri Sep 1 12:27:22 2023 - INFO - Finish environment cleanup!
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!'
Tue Sep 5 14:00:53 2023 - INFO - Finish environment cleanup!
Loading