forked from wangziqi/gongxue-base
fix: keep SMS smoke progress visible with artifact output
This commit is contained in:
@@ -229,8 +229,7 @@ async function runRemoteSmsLoginSmoke(inputConfig, options = {}) {
|
||||
async function main() {
|
||||
const options = parseArgs(process.argv.slice(2));
|
||||
try {
|
||||
const machineOutput = options.json || Boolean(options.writePath);
|
||||
const result = await runRemoteSmsLoginSmoke({ ...buildConfig(), jsonOutput: machineOutput }, { quiet: options.quiet || machineOutput });
|
||||
const result = await runRemoteSmsLoginSmoke({ ...buildConfig(), jsonOutput: options.json }, { quiet: options.quiet || options.json });
|
||||
if (options.writePath) {
|
||||
const resolvedPath = path.resolve(process.cwd(), options.writePath);
|
||||
fs.mkdirSync(path.dirname(resolvedPath), { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user