Skip to content

Commit 184dcb5

Browse files
authored
Merge pull request #402 from LambdaTest/stage
Release 4.1.38-beta.0
2 parents bd8e859 + 0398b80 commit 184dcb5

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.1.37",
3+
"version": "4.1.38-beta.0",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/env.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default (): Env => {
2424
USE_REMOTE_DISCOVERY,
2525
SMART_GIT,
2626
SHOW_RENDER_ERRORS,
27-
SMARTUI_SSE_URL='https://server-events.lambdatest.com'
27+
SMARTUI_SSE_URL='https://server-events.lambdatest.com',
28+
LT_SDK_SKIP_EXECUTION_LOGS
2829
} = process.env
2930

3031
return {
@@ -50,6 +51,7 @@ export default (): Env => {
5051
USE_REMOTE_DISCOVERY: USE_REMOTE_DISCOVERY === 'true',
5152
SMART_GIT: SMART_GIT === 'true',
5253
SHOW_RENDER_ERRORS: SHOW_RENDER_ERRORS === 'true',
53-
SMARTUI_SSE_URL
54+
SMARTUI_SSE_URL,
55+
LT_SDK_SKIP_EXECUTION_LOGS: LT_SDK_SKIP_EXECUTION_LOGS === 'true'
5456
}
5557
}

src/tasks/exec.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
3131

3232
// Handle standard output
3333
let totalOutput = '';
34-
const output = createWritable((chunk: string) => {
35-
totalOutput += chunk;
36-
task.output = chalk.gray(totalOutput);
37-
})
38-
childProcess.stdout?.pipe(output);
39-
childProcess.stderr?.pipe(output);
34+
if (!ctx.env.LT_SDK_SKIP_EXECUTION_LOGS) {
35+
const output = createWritable((chunk: string) => {
36+
totalOutput += chunk;
37+
task.output = chalk.gray(totalOutput);
38+
})
39+
childProcess.stdout?.pipe(output);
40+
childProcess.stderr?.pipe(output);
41+
}
4042

4143
childProcess.on('error', (error) => {
4244
task.output = chalk.gray(`error: ${error.message}`);

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export interface Env {
124124
SMART_GIT: boolean;
125125
SHOW_RENDER_ERRORS: boolean;
126126
SMARTUI_SSE_URL: string;
127+
LT_SDK_SKIP_EXECUTION_LOGS: boolean;
127128
}
128129

129130
export interface Snapshot {

0 commit comments

Comments
 (0)