diff --git a/test/runner/nwjs/wine.sh b/test/runner/nwjs/wine.sh deleted file mode 100644 index 349559f..0000000 --- a/test/runner/nwjs/wine.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# 代码里不要启动gui -docker run -it --volume=.:/c --env=USE_XVFB=yes --env=XVFB_SERVER=:95 --env=XVFB_SCREEN=0 --env=XVFB_RESOLUTION=320x240x8 --env=DISPLAY=:95 --rm --hostname=DESKTOP-1TV4OAG --name=wine --shm-size=1g --workdir=/home/wineuser --env=TZ=Asia/Shanghai --volume=winehome:/home/wineuser -p 8083:8083 scottyhardy/docker-wine:latest wine /c/nwjs-sdk-v0.55.0-win-x64/nw.exe - diff --git a/test/spec/prepare.sh b/test/spec/prepare.sh index 1177e6a..bd25656 100755 --- a/test/spec/prepare.sh +++ b/test/spec/prepare.sh @@ -2,7 +2,7 @@ set -e test_dir=$(cd `dirname $0`/.. && pwd -P) - +"$test_dir/runner/nwjs/module-prepare.sh" "$test_dir/spec/issue/prepare.sh" project_dir="$test_dir/projects" diff --git a/test/spec/wcc/module/module.spec.ts b/test/spec/wcc/module/module.spec.ts index aca55b3..d8bd3d9 100644 --- a/test/spec/wcc/module/module.spec.ts +++ b/test/spec/wcc/module/module.spec.ts @@ -6,11 +6,7 @@ import linux from '../../../runner/module-linux' import windows from '../../../runner/module-windows' import * as fs from 'fs' -windows.start() describe("wcc - module", function () { - this.afterAll(() => { - windows.close() - }) describe("llw: linux output should deep equal with wine", function () { // afterEach(function(){ // if(this.currentTest.state === 'failed'){ diff --git a/test/spec/wcsc/module/module.spec.ts b/test/spec/wcsc/module/module.spec.ts index 9e529cd..9611619 100644 --- a/test/spec/wcsc/module/module.spec.ts +++ b/test/spec/wcsc/module/module.spec.ts @@ -6,11 +6,7 @@ import linux from '../../../runner/module-linux' import windows from '../../../runner/module-windows' import * as fs from 'fs' -windows.start() describe("wcsc - module", function () { - this.afterAll(() => { - windows.close() - }) describe("linux output should deep equal with wine", function () { // afterEach(function(){ // if(this.currentTest.state === 'failed'){