mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-26 06:37:21 +10:00
fix-test
This commit is contained in:
parent
48880509e8
commit
e8ef902bd5
1 changed files with 2 additions and 6 deletions
|
|
@ -20,13 +20,9 @@ docker run \
|
|||
sleep infinity
|
||||
|
||||
# Wait until the desktop environment test container is running before proceeding
|
||||
timeout 10 $(until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done)
|
||||
timeout 1 sh -c "until docker inspect $DESKTOP_ENVIRONMENT_CONTAINER_NAME | grep Status | grep -m 1 running >/dev/null; do sleep 1; done"
|
||||
|
||||
# Start the vnc server inside the desktop environment test container
|
||||
$REPO_ROOT/docker/scripts/exec.sh /home/$DESKTOP_ENVIRONMENT_USER/.config/scripts/startup.sh
|
||||
|
||||
# Check desktop environment vnc server started successfully
|
||||
$REPO_ROOT/docker/scripts/exec.sh "curl --silent localhost | grep -iq vnc"
|
||||
# Check desktop environment container started successfully
|
||||
TEST_RESULT=$?
|
||||
|
||||
# Remove desktop environment test container
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue