Skip to content

Commit

Permalink
🐛 (workflow): 修复测试脚本中未正确退出的问题
Browse files Browse the repository at this point in the history
在执行 `yarn quickTest` 命令时,如果发生错误,脚本不会正确退出,导致后续操作可能继续执行。通过注释掉 `process.exit(1)`,确保错误处理逻辑能够正确拒绝并返回错误信息。
  • Loading branch information
AnkioTomas committed Dec 5, 2024
1 parent a8f52fe commit 179dfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/testRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function runYarnCommands () {
exec('yarn quickTest', (error, stdout, stderr) => {
if (error) {
console.error(`执行yarn命令出错: ${error}`);
process.exit(1);
//process.exit(1);
return reject(stderr);
}
console.log('yarn命令执行完成');
Expand Down

0 comments on commit 179dfc9

Please sign in to comment.