Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b3c934cd
Commit
b3c934cd
authored
Jun 16, 2014
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parse status; makes test much faster
parent
4df24a10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
basic.sh
hack/e2e-suite/basic.sh
+20
-3
No files found.
hack/e2e-suite/basic.sh
View file @
b3c934cd
...
...
@@ -26,10 +26,27 @@ detect-project
# Launch a container
$CLOUDCFG
-p
8080:80 run dockerfile/nginx 2 myNginx
function
remove-quotes
()
{
local
in
=
$1
stripped
=
"
${
in
%\
"}"
stripped=
"
${
stripped
#\
"}"
echo
$stripped
}
POD_ID_LIST=
$(
$CLOUDCFG
-json
-l
name
=
myNginx list pods | jq
".items[].id"
)
# Container turn up on a clean cluster can take a while for the docker image pull.
# Sleep for 2 minutes just to be sure.
echo
"Waiting for containers to come up."
sleep
120
ALL_RUNNING=false
while [[
$ALL_RUNNING
-ne "
true
" ]]; do
echo "
Waiting
for containers to come up.
"
sleep 5
ALL_RUNNING=true
for id in
$POD_ID_LIST
; do
CURRENT_STATUS=
$(
remove-quotes
$(
$CLOUDCFG
-json
get
"pods/
$(
remove-quotes
${
id
})
"
| jq
'.currentState.status'
))
if [[
$CURRENT_STATUS
-ne "
Running
" ]]; then
ALL_RUNNING=false
fi
done
done
# Get minion IP addresses
detect-minions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment