This commit is contained in:
msojocs 2024-07-06 22:17:25 +08:00
parent 8b0ed3be8e
commit 1a81a9a8b2
2 changed files with 8 additions and 7 deletions

View File

@ -37,7 +37,6 @@ docker run -d -i\
--env=XVFB_SCREEN=0\ --env=XVFB_SCREEN=0\
--env=XVFB_RESOLUTION=320x240x8\ --env=XVFB_RESOLUTION=320x240x8\
--env=DISPLAY=:95\ --env=DISPLAY=:95\
--rm\
--hostname=DESKTOP-1TV4OA1\ --hostname=DESKTOP-1TV4OA1\
--name=wine\ --name=wine\
--shm-size=1g\ --shm-size=1g\
@ -47,9 +46,16 @@ docker run -d -i\
-p 8083:8083\ -p 8083:8083\
scottyhardy/docker-wine:latest\ scottyhardy/docker-wine:latest\
wine /workspace/cache/nwjs-sdk-v$nw_version-win-x64/nw.exe wine /workspace/cache/nwjs-sdk-v$nw_version-win-x64/nw.exe
i=0
until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:8083/check); do until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:8083/check); do
printf '.' printf '.'
curl http://127.0.0.1:8083/check curl http://127.0.0.1:8083/check
sleep 1 sleep 1
let i=$i+1
if [ $i -ge 5 ];then
echo "error"
docker ps -a
exit 1
fi
done done
echo "success" echo "success"

View File

@ -6,13 +6,8 @@ import linux from '../../../runner/module-linux'
import windows from '../../../runner/module-windows' import windows from '../../../runner/module-windows'
import * as fs from 'fs' import * as fs from 'fs'
describe("wcc - module", function () {
this.beforeAll(function(done) {
this.timeout(120000)
windows.start() windows.start()
console.log('start success!') describe("wcc - module", function () {
done()
})
this.afterAll(() => { this.afterAll(() => {
windows.close() windows.close()
}) })