diff options
Diffstat (limited to 'src/SignalR/clients/ts/FunctionalTests/selenium/run-tests.ts')
-rw-r--r-- | src/SignalR/clients/ts/FunctionalTests/selenium/run-tests.ts | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/SignalR/clients/ts/FunctionalTests/selenium/run-tests.ts b/src/SignalR/clients/ts/FunctionalTests/selenium/run-tests.ts index 6f548f1534..c74603b12c 100644 --- a/src/SignalR/clients/ts/FunctionalTests/selenium/run-tests.ts +++ b/src/SignalR/clients/ts/FunctionalTests/selenium/run-tests.ts @@ -1,8 +1,7 @@ import { ChildProcess, spawn } from "child_process"; -import * as _fs from "fs"; +import * as fs from "fs"; import { EOL } from "os"; import * as path from "path"; -import { promisify } from "util"; import { PassThrough, Readable } from "stream"; import { run } from "../../webdriver-tap-runner/lib"; @@ -10,16 +9,6 @@ import { run } from "../../webdriver-tap-runner/lib"; import * as _debug from "debug"; const debug = _debug("signalr-functional-tests:run"); -const ARTIFACTS_DIR = path.resolve(__dirname, "..", "..", "..", "..", "artifacts"); -const LOGS_DIR = path.resolve(ARTIFACTS_DIR, "logs"); - -// Promisify things from fs we want to use. -const fs = { - createWriteStream: _fs.createWriteStream, - exists: promisify(_fs.exists), - mkdir: promisify(_fs.mkdir), -}; - process.on("unhandledRejection", (reason) => { console.error(`Unhandled promise rejection: ${reason}`); process.exit(1); @@ -113,13 +102,6 @@ if (chromePath) { try { const serverPath = path.resolve(__dirname, "..", "bin", configuration, "netcoreapp2.1", "FunctionalTests.dll"); - if (!await fs.exists(ARTIFACTS_DIR)) { - await fs.mkdir(ARTIFACTS_DIR); - } - if (!await fs.exists(LOGS_DIR)) { - await fs.mkdir(LOGS_DIR); - } - debug(`Launching Functional Test Server: ${serverPath}`); const dotnet = spawn("dotnet", [serverPath], { env: { @@ -135,9 +117,6 @@ if (chromePath) { } } - const logStream = fs.createWriteStream(path.resolve(LOGS_DIR, "ts.functionaltests.dotnet.log")); - dotnet.stdout.pipe(logStream); - process.on("SIGINT", cleanup); process.on("exit", cleanup); |