登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
12月21日就在北京,来看大模型推理 + 国产硬件生态 + 开源社区分享,一起搞技术、聊开源、领福利~~
代码拉取完成,页面将自动刷新
开源项目
>
开发工具
>
测试工具
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
38
Star
75
Fork
725
openEuler
/
mugen
代码
Issues
164
Pull Requests
144
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
systemd-vconsole-setup用例执行失败
待办的
#ICUA2Y
缺陷
hanjinpeng
创建于
2025-08-22 16:25
**【缺陷描述】:systemd-vconsole-setup用例执行失败** **一、缺陷信息** **【环境信息】** arch:x86_64 os:openEuler 20.03 LTS **【问题复现步骤】** **1. 执行测试systemd的systemd-vconsole-setup用例** ```bash export LANG=en_US.UTF-8 bash mugen.sh -f systemd -r oe_test_service_systemd-vconsole-setup -x ``` **2. 测试用例失败:**  2.1 测试用例脚本内容如下: oe_test_service_systemd-vconsole-setup.sh脚本文件内容: ``` source "../common/common_lib.sh" function run_test() { LOG_INFO "Start testing... test_execution systemd-vconsole-setup.service test_reload systemd-vconsole-setup.service LOG_INFO "Finish test!" } main "$@" ``` common_lib.sh文件内容: ``` source "${OET_PATH}/libs/locallibs/common_lib.sh" function test_execution() { service=$1 log_time="$(date '+%Y-%m-%d %T')" test_restart "${service}" test_enabled "${service}" journalctl --since "${log_time}" -u "${service}" | grep -i "fail\|error" | grep -v -i "DEBUG\|INFO\|WARNING" CHECK_RESULT $? 0 1 "There is an error message for the log of ${service}" } ... ... ... function test_reload() { service=$1 systemctl start "${service}" if systemctl show "${service}" -p CanReload | grep CanReload=yes; then systemctl reload "${service}" CHECK_RESULT $? 0 0 "reload unit ${service} failed" else systemctl reload "${service}" 2>&1 | grep "Job type reload is not applicable" CHECK_RESULT $? 0 0 "Job type reload is not applicable for unit ${service}" fi if ! systemctl status "${service}" | grep "Active: active"; then if systemctl status "${service}" | grep "inactive (dead)"; then systemctl status "${service}" | grep "Condition check" | grep "skip" CHECK_RESULT $? 0 0 "${service} reload causes the service status to change" else return 1 fi fi } ``` **3. 分析测试用例日志的报错信息,查看具体报错原因:** 3.1 enable报错  ``` + LOG_INFO 'The unit files have no installation config,This means they are not meant to be enabled using systemctl.' + message='The unit files have no installation config,This means they are not meant to be enabled using systemctl.' ``` 通过分析,这个报错信息 说明 enable/disable 服务需要service文件中 有[Install] 段(如 WantedBy=、RequiredBy=、Alias=、Also= 等)。如果单元文件没有 [Install] 段,说明是 “static(静态)”单元,是不能被 enable/disable,执行会报错。 systemd-vconsole-setup.service服务不能被enable/disable。 3.2 reload报错  ``` + grep 'Job type reload is not applicable' Failed to reload systemd-vconsole-setup.service: Job type reload is not applicable for unit systemd-vconsole-setup.service. + CHECK_RESULT 0 0 0 'Job type reload is not applicable for unit systemd-vconsole-setup.service' ``` 说明systemd-vconsole-setup.service没有没有定义 ExecReload=,因此不支持 reload。 因为对一个不支持 reload 的服务单元执行systemctl reload,systemd就会报 “Job type reload is not applicable”。 **通过对测试日志中的两个错误分析,说明测试用例中enable和reload操作测试,对systemd-vconsole-setup.service服务并不兼容支持。也就是说测试用例的test_execution和test_reload测试都会失败。 所以systemd-vconsole-setup这条测试用例需要清理移除。**
**【缺陷描述】:systemd-vconsole-setup用例执行失败** **一、缺陷信息** **【环境信息】** arch:x86_64 os:openEuler 20.03 LTS **【问题复现步骤】** **1. 执行测试systemd的systemd-vconsole-setup用例** ```bash export LANG=en_US.UTF-8 bash mugen.sh -f systemd -r oe_test_service_systemd-vconsole-setup -x ``` **2. 测试用例失败:**  2.1 测试用例脚本内容如下: oe_test_service_systemd-vconsole-setup.sh脚本文件内容: ``` source "../common/common_lib.sh" function run_test() { LOG_INFO "Start testing... test_execution systemd-vconsole-setup.service test_reload systemd-vconsole-setup.service LOG_INFO "Finish test!" } main "$@" ``` common_lib.sh文件内容: ``` source "${OET_PATH}/libs/locallibs/common_lib.sh" function test_execution() { service=$1 log_time="$(date '+%Y-%m-%d %T')" test_restart "${service}" test_enabled "${service}" journalctl --since "${log_time}" -u "${service}" | grep -i "fail\|error" | grep -v -i "DEBUG\|INFO\|WARNING" CHECK_RESULT $? 0 1 "There is an error message for the log of ${service}" } ... ... ... function test_reload() { service=$1 systemctl start "${service}" if systemctl show "${service}" -p CanReload | grep CanReload=yes; then systemctl reload "${service}" CHECK_RESULT $? 0 0 "reload unit ${service} failed" else systemctl reload "${service}" 2>&1 | grep "Job type reload is not applicable" CHECK_RESULT $? 0 0 "Job type reload is not applicable for unit ${service}" fi if ! systemctl status "${service}" | grep "Active: active"; then if systemctl status "${service}" | grep "inactive (dead)"; then systemctl status "${service}" | grep "Condition check" | grep "skip" CHECK_RESULT $? 0 0 "${service} reload causes the service status to change" else return 1 fi fi } ``` **3. 分析测试用例日志的报错信息,查看具体报错原因:** 3.1 enable报错  ``` + LOG_INFO 'The unit files have no installation config,This means they are not meant to be enabled using systemctl.' + message='The unit files have no installation config,This means they are not meant to be enabled using systemctl.' ``` 通过分析,这个报错信息 说明 enable/disable 服务需要service文件中 有[Install] 段(如 WantedBy=、RequiredBy=、Alias=、Also= 等)。如果单元文件没有 [Install] 段,说明是 “static(静态)”单元,是不能被 enable/disable,执行会报错。 systemd-vconsole-setup.service服务不能被enable/disable。 3.2 reload报错  ``` + grep 'Job type reload is not applicable' Failed to reload systemd-vconsole-setup.service: Job type reload is not applicable for unit systemd-vconsole-setup.service. + CHECK_RESULT 0 0 0 'Job type reload is not applicable for unit systemd-vconsole-setup.service' ``` 说明systemd-vconsole-setup.service没有没有定义 ExecReload=,因此不支持 reload。 因为对一个不支持 reload 的服务单元执行systemctl reload,systemd就会报 “Job type reload is not applicable”。 **通过对测试日志中的两个错误分析,说明测试用例中enable和reload操作测试,对systemd-vconsole-setup.service服务并不兼容支持。也就是说测试用例的test_execution和test_reload测试都会失败。 所以systemd-vconsole-setup这条测试用例需要清理移除。**
评论 (
1
)
登录
后才可以发表评论
状态
待办的
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
标签
sig/sig-QA
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (1)
标签 (2)
master
V2.0-2407
V1.0-2401
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/openeuler/mugen.git
git@gitee.com:openeuler/mugen.git
openeuler
mugen
mugen
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册