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_RESOLUTION=320x240x8\
--env=DISPLAY=:95\
--rm\
--hostname=DESKTOP-1TV4OA1\
--name=wine\
--shm-size=1g\
@ -47,9 +46,16 @@ docker run -d -i\
-p 8083:8083\
scottyhardy/docker-wine:latest\
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
printf '.'
curl http://127.0.0.1:8083/check
sleep 1
let i=$i+1
if [ $i -ge 5 ];then
echo "error"
docker ps -a
exit 1
fi
done
echo "success"

View File

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