29 Star 13 Fork 88

openGauss / Yat

 / 详情

yat suite mkschd only capture two depth direcotry when generating schedule file automatically

已完成
缺陷 成员
创建于  
2022-05-12 12:22

【标题描述】:
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】【测试版本:2.0.0】 问题描述

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):

【测试环境】(单机/1主x备x级联备): Single node

【被测功能】:

【测试类型】:

【数据库版本】(查询命令: gaussdb –V):

【预置条件】:

【操作步骤】(请填写详细的操作步骤):

  1. Install Yat and init test suite.
  2. Generate the suite schedule file by command: yat suite mkschd --force
  3. Check the schedule/schedule.schd file generated.
  4. Find that only two directory depth cases were captured and added in the schedule.schd file. Eventhough it is strongly recommended to compose this schedule file manually when the direcotry depth of tesecases is more than two, it would be better to capture all cases in the suite when we provide users this interface to generate the schedule file automatically for user friendly considerations.

【预期输出】:
test: SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_Systeminfo_Has_Tablespace_Privilege_Case0001
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_Systeminfo_Pg_Check_Authid_Case0001
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_Transactions_Id_Case0003
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_System_info_Case0015
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_System_info_Case0027
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_System_info_Case0019
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_Txid_Current_Case0001
SQL/INNERFUNC/systemInfo/Opengauss_Function_Innerfunc_System_info_Case0025

【实际输出】:
test: LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0009
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0006
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0004
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0007
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0003
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0005
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0008
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0002
LOCK_LEVEL/Opengauss_Function_Lower_Lock_Level_Case0001
test:
test: MATERIALIZED_VIEW/Opengauss_Function_Materialized_View_Case0004
MATERIALIZED_VIEW/Opengauss_Function_Materialized_View_Case0013
MATERIALIZED_VIEW/Opengauss_Function_Materialized_View_Case0009
MATERIALIZED_VIEW/Opengauss_Function_Materialized_View_Case0003
MATERIALIZED_VIEW/Opengauss_Function_Materialized_View_Case0010
MATERIALIZED_VIEW/Opengauss_Function_Materialized_View_Case0005

【原因分析】:

  1. 这个问题的根因
    yat-master\pymodule\yat\suite\schedule.py function make_schedule() would be updated to support traversal all the sub direcotries in the test suite.

  2. 问题推断过程

  3. 还有哪些原因可能造成类似现象

  4. 该问题是否有临时规避措施

  5. 问题解决方案

  6. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (1)

Sun 创建了缺陷

Hey @Sun, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

yansong_lee 负责人设置为Sun
yansong_lee 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5622128 opengauss bot 1581905080 10571797 min sun 1649929475
1
https://gitee.com/opengauss/Yat.git
git@gitee.com:opengauss/Yat.git
opengauss
Yat
Yat

搜索帮助