-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2025-06-08-13_54_19.log
184 lines (175 loc) · 6.66 KB
/
2025-06-08-13_54_19.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
+ source /root/mugen/libs/locallibs/common_lib.sh
++ python3 --version
++ '[' 0 -eq 0 ']'
++ source /root/mugen/libs/locallibs/common_lib_python.sh
+ main
++ type -t post_test
+ '[' -n function ']'
+ trap post_test EXIT INT HUP TERM
+ rpm -qa
+ grep expect
++ type -t config_params
+ '[' -n '' ']'
++ type -t pre_test
+ '[' -n function ']'
+ pre_test
+ LOG_INFO 'Start to prepare the test environment.'
+ message='Start to prepare the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to prepare the test environment.'
Sun Jun 8 13:54:19 2025 - INFO - Start to prepare the test environment.
+ useradd test1
+ useradd test2
+ echo 'test1:deepin12#$'
+ chpasswd
+ echo 'test2:deepin12#$'
+ chpasswd
+ LOG_INFO 'End to prepare the test environment.'
+ message='End to prepare the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to prepare the test environment.'
Sun Jun 8 13:54:19 2025 - 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/libs/locallibs/mugen_log.py --level info --message 'start to run test.'
Sun Jun 8 13:54:19 2025 - INFO - start to run test.
+ expect
spawn ssh test1@localhost
The authenticity of host 'localhost (::1)' can't be established.
ED25519 key fingerprint is SHA256:sgrj0sqHuv5Y7Cs/7ymCVVwltgcieWDHNF9DCknm5RI.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
Authorized users only. All activities may be monitored and reported.
test1@localhost's password:
Authorized users only. All activities may be monitored and reported.
Welcome to 6.1.19-7.0.0.17.oe2303.x86_64
System information as of time: Sun Jun 8 01:54:19 PM UTC 2025
System load: [0;33;40m0.29[0m
Processes: 130
Memory used: 4.1%
Swap used: 0.0%
Usage On: 15%
IP address: 10.0.2.15
Users online: 1
To run a command as administrator(user "root"),use "sudo <command>".
[test1@localhost ~]$ + systemctl status auditd.service
+ grep 'active (running)'
Unit auditd.service could not be found.
+ CHECK_RESULT 1 0 0 'auditd.service is not running'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='auditd.service is not running'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'auditd.service is not running'
+ LOG_ERROR 'auditd.service is not running'
+ message='auditd.service is not running'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'auditd.service is not running'
Sun Jun 8 13:54:29 2025 - ERROR - auditd.service is not running
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_aulastlog.sh line 41'
+ message='oe_test_aulastlog.sh line 41'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_aulastlog.sh line 41'
Sun Jun 8 13:54:29 2025 - ERROR - oe_test_aulastlog.sh line 41
+ '[' 0 -eq 1 ']'
+ return 0
+ aulastlog
oe_test_aulastlog.sh: line 42: aulastlog: command not found
+ CHECK_RESULT 127 0 0 'all login log is not find'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='all login log is not find'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'all login log is not find'
+ LOG_ERROR 'all login log is not find'
+ message='all login log is not find'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'all login log is not find'
Sun Jun 8 13:54:29 2025 - ERROR - all login log is not find
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_aulastlog.sh line 43'
+ message='oe_test_aulastlog.sh line 43'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_aulastlog.sh line 43'
Sun Jun 8 13:54:29 2025 - ERROR - oe_test_aulastlog.sh line 43
+ '[' 0 -eq 1 ']'
+ return 0
+ aulastlog -u test1
+ grep test1
oe_test_aulastlog.sh: line 44: aulastlog: command not found
+ CHECK_RESULT 1 0 0 'test1 login log is not find'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='test1 login log is not find'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'test1 login log is not find'
+ LOG_ERROR 'test1 login log is not find'
+ message='test1 login log is not find'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'test1 login log is not find'
Sun Jun 8 13:54:29 2025 - ERROR - test1 login log is not find
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_aulastlog.sh line 45'
+ message='oe_test_aulastlog.sh line 45'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_aulastlog.sh line 45'
Sun Jun 8 13:54:29 2025 - ERROR - oe_test_aulastlog.sh line 45
+ '[' 0 -eq 1 ']'
+ return 0
+ aulastlog -u test2
oe_test_aulastlog.sh: line 46: aulastlog: command not found
+ grep 'Never logged in'
+ CHECK_RESULT 1 0 0 'test2 login log is not find'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='test2 login log is not find'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'test2 login log is not find'
+ LOG_ERROR 'test2 login log is not find'
+ message='test2 login log is not find'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'test2 login log is not find'
Sun Jun 8 13:54:29 2025 - ERROR - test2 login log is not find
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_aulastlog.sh line 47'
+ message='oe_test_aulastlog.sh line 47'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_aulastlog.sh line 47'
Sun Jun 8 13:54:29 2025 - ERROR - oe_test_aulastlog.sh line 47
+ '[' 0 -eq 1 ']'
+ return 0
+ LOG_INFO 'End to run test.'
+ message='End to run test.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to run test.'
Sun Jun 8 13:54:29 2025 - INFO - End to run test.
+ CASE_RESULT 0
+ case_re=0
+ test -z 4
+ test 4 -gt 0
+ LOG_ERROR 'failed to execute the case.'
+ message='failed to execute the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'failed to execute the case.'
Sun Jun 8 13:54:29 2025 - ERROR - failed to execute the case.
+ exit 4
+ post_test
+ LOG_INFO 'start environment cleanup.'
+ message='start environment cleanup.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.'
Sun Jun 8 13:54:29 2025 - INFO - start environment cleanup.
+ userdel -rf test1
+ userdel -rf test2
+ LOG_INFO 'Finish environment cleanup!'
+ message='Finish environment cleanup!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!'
Sun Jun 8 13:54:30 2025 - INFO - Finish environment cleanup!