From 8b0c4113f56956d77b0f77355d86b32d5468b7e2 Mon Sep 17 00:00:00 2001 From: Joao Date: Fri, 8 Sep 2017 10:23:53 +0200 Subject: [PATCH] clean up repo before each test suite --- test/smoke/src/spectron/application.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/smoke/src/spectron/application.ts b/test/smoke/src/spectron/application.ts index 4fe272aaa83..c8a08a512be 100644 --- a/test/smoke/src/spectron/application.ts +++ b/test/smoke/src/spectron/application.ts @@ -8,6 +8,7 @@ import { SpectronClient } from './client'; import { NullScreenshot, IScreenshot, Screenshot } from '../helpers/screenshot'; import { Workbench } from '../areas/workbench/workbench'; import * as fs from 'fs'; +import * as cp from 'child_process'; import * as path from 'path'; export const LATEST_PATH = process.env.VSCODE_PATH as string; @@ -77,6 +78,7 @@ export class SpectronApplication { public async start(...args: string[]): Promise { await this.retrieveKeybindings(); + cp.execSync('git checkout .', { cwd: WORKSPACE_PATH }); await this.startApplication(args); await this.checkWindowReady(); await this.waitForWelcome();