Skip to content

Commit d1e3d98

Browse files
committed
build: remove env logging in exec method
This adds a lot of noise and very rare proved to be useful. Envs are also printed as part of step 300.
1 parent e8470ed commit d1e3d98

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

tests/legacy-cli/e2e/utils/git.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
import { git, silentGit } from './process';
22

33
export async function gitClean(): Promise<void> {
4-
console.log(' Cleaning git...');
5-
64
await silentGit('clean', '-df');
75
await silentGit('reset', '--hard');
8-
9-
// Checkout missing files
10-
const { stdout } = await silentGit('status', '--porcelain');
11-
const files = stdout
12-
.split(/[\n\r]+/g)
13-
.filter((line) => line.match(/^ D/))
14-
.map((line) => line.replace(/^\s*\S+\s+/, ''));
15-
16-
await silentGit('checkout', ...files);
17-
await expectGitToBeClean();
186
}
197

208
export async function expectGitToBeClean(): Promise<void> {

tests/legacy-cli/e2e/utils/process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function _exec(options: ExecOptions, cmd: string, args: string[]): Promise<Proce
4949

5050
console.log(colors.blue(`Running \`${cmd} ${args.map((x) => `"${x}"`).join(' ')}\`${flags}...`));
5151
console.log(colors.blue(`CWD: ${cwd}`));
52-
console.log(colors.blue(`ENV: ${JSON.stringify(env)}`));
52+
5353
const spawnOptions: SpawnOptions = {
5454
cwd,
5555
...(env ? { env } : {}),

0 commit comments

Comments
 (0)